1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-13 10:22:42 +01:00
phorge-phorge/src/applications/differential
epriestley d8bbf55959 Improve behavior when user submits a no-op action in Differential
Summary:
See T730 and the slightly-less-pretty version of this in D1398.

When a user takes an action in Differential that has no effect (for instance,
accepting an already-accepted revision), prompt them:

  Action Has No Effect

  You can not accept this revision because it has already been accepted.

  Do you want to post the feedback anyway, as a normal comment?

                        [Cancel] [Post as Comment]

If they have no comment text, the dialog only says "Cancel".

I think this is probably the best way to balance all the concerns here -- it
might occasionally be a little annoying, but that should be rare, and it should
never be confusing (the current workflow is extremely confusing).

This also fixes the issue where you can add all sorts of CCs who are already
part of the revision, either explicitly or via mentions.

Test Plan:
Posted some has-effect and has-no-effect comments, made different
choices in the dialog, everything seems to work OK?

Reviewers: vrana, btrahan, jungejason

Reviewed By: vrana

CC: aran, vrana

Maniphest Tasks: T730

Differential Revision: https://secure.phabricator.com/D1403
2012-01-15 03:44:09 -08:00
..
constants Deploy new ArcanistManyWordsAboutDifferentialConstants class from D1328 into 2012-01-10 11:49:20 -08:00
controller Improve behavior when user submits a no-op action in Differential 2012-01-15 03:44:09 -08:00
data/revisionlist Deploy new ArcanistManyWordsAboutDifferentialConstants class from D1328 into 2012-01-10 11:49:20 -08:00
editor Improve behavior when user submits a no-op action in Differential 2012-01-15 03:44:09 -08:00
exception Improve behavior when user submits a no-op action in Differential 2012-01-15 03:44:09 -08:00
field Add link from lint error to code 2012-01-14 11:11:17 -08:00
mail Add BRANCH to Accepted and Needs Revision e-mails 2012-01-14 11:12:28 -08:00
parser/changeset Kill PhabricatorFileURI 2012-01-10 15:21:39 -08:00
query/revision Enable filtering for committed revisions 2012-01-12 17:02:20 -08:00
replyhandler Don't add author and reviewers to CCs 2012-01-14 11:10:40 -08:00
storage Deploy new ArcanistManyWordsAboutDifferentialConstants class from D1328 into 2012-01-10 11:49:20 -08:00
tasks Enable updating task->revision assoc 2011-04-26 19:14:47 -07:00
view Improve behavior when user submits a no-op action in Differential 2012-01-15 03:44:09 -08:00