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/pholio
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 Add a defualt view policy for Pholio 2014-01-30 11:53:42 -08:00
config Pholio - support editing images - fixes T3489 2013-07-16 13:31:20 -07:00
constants Pholio - back end for image re-ordering 2013-08-12 13:09:07 -07:00
controller Pholio - robustify submission errors to retain image edits 2014-02-11 11:38:10 -08:00
editor Update overall revision status after reviewers change 2014-02-25 12:36:49 -08:00
event Make event-triggered actions more aware of application access 2013-10-21 17:00:50 -07:00
lipsum lipsum - tighten up some test data generation 2013-10-04 15:29:32 -07:00
mail Pholio - support editing images - fixes T3489 2013-07-16 13:31:20 -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 Pholio - support editing images - fixes T3489 2013-07-16 13:31:20 -07:00
search Restore search indexing to Ponder questions 2013-07-29 12:04:19 -07:00
storage Allow CustomField to provide ApplicationTransaction change details 2014-02-21 11:53:04 -08:00
view Use timeline view in Differential and make inlines somewhat usable again 2014-02-13 15:00:29 -08:00