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
Unknown Object (File)
Sat, Dec 21, 2:22 AM
Unknown Object (File)
Sat, Dec 7, 11:19 PM
Unknown Object (File)
Tue, Dec 3, 5:12 PM
Unknown Object (File)
Fri, Nov 29, 6:27 AM
Unknown Object (File)
Wed, Nov 27, 4:00 PM
Unknown Object (File)
Sat, Nov 23, 6:25 AM
Unknown Object (File)
Nov 19 2024, 4:37 AM
Unknown Object (File)
Nov 15 2024, 1:48 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).