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
F15714945: D18490.diff
Thu, May 29, 5:01 AM
Unknown Object (File)
Mon, May 5, 4:35 AM
Unknown Object (File)
Apr 29 2025, 3:23 AM
Unknown Object (File)
Apr 28 2025, 4:38 PM
Unknown Object (File)
Apr 27 2025, 5:15 AM
Unknown Object (File)
Mar 29 2025, 1:13 PM
Unknown Object (File)
Mar 27 2025, 7:13 PM
Unknown Object (File)
Mar 27 2025, 4:29 AM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.