Page MenuHomePhabricator

Fix an issue where "Close Revision" did not appear in the UI
ClosedPublic

Authored by epriestley on Aug 29 2017, 4:55 PM.
Tags
None
Referenced Files
F15453628: D18490.id44417.diff
Sat, Mar 29, 1:13 PM
F15446481: D18490.id.diff
Thu, Mar 27, 7:13 PM
F15443454: D18490.id44415.diff
Thu, Mar 27, 4:29 AM
F15435005: D18490.diff
Tue, Mar 25, 6:21 AM
F15402944: D18490.id44415.diff
Tue, Mar 18, 1:12 AM
F15402092: D18490.id.diff
Mon, Mar 17, 8:35 PM
F15391165: D18490.id44417.diff
Sat, Mar 15, 8:30 AM
F15382520: D18490.diff
Fri, Mar 14, 12:48 PM
Subscribers
None

Details

Summary

Ref T2543. When called from the UI to build the dropdown, there's no Editor, since we aren't actually in an edit flow.

This logic worked for actually performing the edits, just not for getting the option into the dropdown.

Test Plan

Used the dropdown to close an "Accepted" revision which I authored.

Diff Detail

Repository
rP Phabricator
Branch
close1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 18202
Build 24476: Run Core Tests
Build 24475: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Aug 29 2017, 4:57 PM

Specifically, getEditor() would throw, and the caller would interpret that as "action isn't available".

I'm going to cherry-pick and hotfix this.

This revision was automatically updated to reflect the committed changes.