1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-22 10:18:48 +02:00
phorge-phorge/src/applications/paste
epriestley a69cca9fbb Update overall revision status after reviewers change
Summary:
Ref T2222. This doesn't feel super clean, but doesn't feel too bad either.

Basically, Differential transactions can have secondary state-based effects (changing the overall revision status) when reviewers resign, are removed, accept, or reject revisions.

To deal with this in ApplicationTransactions, I did this:

  - `applyFinalEffects()` can now alter the transaction set (notably, add new ones). This mostly matters for email, notifications and feed.
  - In Differential, check for an overall revision state transition in `applyFinalEffects()` (e.g., your reject moving the revision to a rejected state).
  - I'm only writing the transaction if the transition is implied and indirect.
    - For example, if you "Plan Changes", that action changes the state on its own so there's no implicit state change transaction added.

The transactions themselves are kind of fluff, but it seems useful to keep a record of when state changes occurred in the transaction log. If people complain we can hide/remove them.

Test Plan: {F118143}

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2222

Differential Revision: https://secure.phabricator.com/D8339
2014-02-25 12:36:49 -08:00
..
application Add app icons to quick menu 2014-01-31 15:19:39 -08:00
capability Modernize policies in Paste and Macro 2013-10-16 10:35:52 -07:00
conduit Modernize policies in Paste and Macro 2013-10-16 10:35:52 -07:00
config Paste - add support for email replies and subscribers 2013-08-05 17:11:46 -07:00
controller Simplify PHUIObjectBoxViews handling of Save and Error states 2014-01-10 09:17:37 -08:00
editor Update overall revision status after reviewers change 2014-02-25 12:36:49 -08:00
lipsum xDiffs and Revisions Generating 2013-05-06 14:11:37 -07:00
mail Maniphest - add support for !assign command 2013-10-14 12:29:41 -07:00
phid Lock policy queries to their applications 2013-10-21 17:20:27 -07:00
query Lock policy queries to their applications 2013-10-21 17:20:27 -07:00
remarkup Line count can be set for paste 2013-03-14 10:51:34 -07:00
storage Make Projects a PhabricatorSubscribableInterface, but with restricted defaults 2014-02-10 14:29:17 -08:00
view Allow disabling line highlighting on click in PhabricatorSourceCodeView 2013-09-25 05:57:03 -07:00