1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 00:02:41 +01:00
phorge-phorge/src/applications/conpherence
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
..
__tests__ Conpherence - implement epoch creation slightly differently 2013-06-03 15:40:00 -07:00
application Add app icons to quick menu 2014-01-31 15:19:39 -08:00
conduit Conpherence - add an updatethread conduit method 2013-05-31 14:58:02 -07:00
config Fix spelling blip 2013-04-03 08:27:05 -07:00
constants Conpherence - add draft support 2014-02-17 15:57:13 -08:00
controller Fix variable issue on Conpherence draft saving pathway 2014-02-24 11:56:04 -08:00
editor Update overall revision status after reviewers change 2014-02-25 12:36:49 -08:00
events Make event-triggered actions more aware of application access 2013-10-21 17:00:50 -07:00
mail Fix two issues with creating Conpherence threads via mail on some configurations 2013-12-12 10:59:28 -08:00
phid Lock policy queries to their applications 2013-10-21 17:20:27 -07:00
query Use a modern query object to query Calendar events 2014-02-06 10:07:42 -08:00
storage Fix two issues with creating Conpherence threads via mail on some configurations 2013-12-12 10:59:28 -08:00
util Conpherence - implement epoch creation slightly differently 2013-06-03 15:40:00 -07:00
view Conpherence - add draft support 2014-02-17 15:57:13 -08:00