Page MenuHomePhabricator

Expose "Abandon Revision" to non-authors with a config flag.
ClosedPublic

Authored by joshuaspence on May 27 2014, 1:52 PM.
Tags
None
Referenced Files
F13083299: D9306.diff
Wed, Apr 24, 10:29 PM
Unknown Object (File)
Sat, Apr 20, 6:58 PM
Unknown Object (File)
Thu, Apr 11, 9:02 AM
Unknown Object (File)
Tue, Apr 9, 1:47 AM
Unknown Object (File)
Mon, Apr 8, 6:16 PM
Unknown Object (File)
Sat, Apr 6, 6:38 AM
Unknown Object (File)
Fri, Apr 5, 10:23 PM
Unknown Object (File)
Mar 25 2024, 3:29 PM
Subscribers

Details

Summary

Fixes T4720. Allows non-authors to permanently reject a differential by exposing the "Abandon Revision" action via a configuration flag.

Test Plan

abandon.png (529×927 px, 51 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

joshuaspence retitled this revision from to Expose "Abandon Revision" to non-authors with a config flag..
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.

(This looks good to me but I'll wait for an actual test. It should also special case the "username abandoned this revision." string if the actor isn't the author.)

joshuaspence edited edge metadata.

Ok. So I've tested this and it seems to be working.

A couple of minor things I noticed:

  • The bubble (not sure of the proper name) next to the reviewer stayed at "Reviewed Requested".
  • I am not sure how/where to change the text depending on whether or not the author is the owner of the diff.

Ok, so the issue with the reviewer status seems to be because I didn't do anything to the DifferentialReviewerStatus code. We could either add DifferentialReviewerStatus::STATUS_ABANDONED or squash it in with DifferentialReviewerStatus::STATUS_REJECTED.

  • The bubble (not sure of the proper name) next to the reviewer stayed at "Reviewed Requested".

Actually it seems that this behavior is expected. This is the behaviour currently when the author abandons a diff, so I don't think that this behavior is unreasonable.

epriestley edited edge metadata.

It would be nice to special case the story text in DifferentialTransaction::getTitle() and DifferentialTransaction::getTitleForFeed() but I guess that's a bit of a pain.

This revision is now accepted and ready to land.Jun 2 2014, 11:58 PM
epriestley updated this revision to Diff 22267.

Closed by commit rP1e2a592ceb36 (authored by @joshuaspence, committed by @epriestley).