1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-14 19:02:41 +01:00
phorge-phorge/src/applications/herald
epriestley ee4c7268fe Make "ADD_CC" and "REMOVE_CC" available as "standard" Herald effects
Summary:
Ref T8455. Begins consolidating the code for applying these effects:

  - Makes Add/Remove subscribers a standard effect, and uses it in Pholio.
  - This includes the "don't re-subscribe users who have explicitly unsubscribed" logic from Differential in the standard effect. I think this rule is always desirable.
  - This adds new filtering of invalid PHID types to resolve the `arc diff` issue in T8455 once Differential uses this standard effect.
  - Added "Remove Subscribers" to MockAdapter in order to test that it works.
  - Relabeled "CC" in Pholio to "Subscribers" for consistency.

Test Plan:
  - Created several rules which add subscribers to (and remove subscribers from) mocks.
  - Updated mocks, changing properties and adding and removing subscribers.
  - Observed transactions applying and aggregating properly.
  - Observed add/remove rules each working correctly.
  - Observed the "don't re-add unsubscribed users" condition acting on subscribers who had previously been added but explicitly removed/unsubscribed.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T8455

Differential Revision: https://secure.phabricator.com/D13179
2015-06-08 10:30:22 -07:00
..
adapter Make "ADD_CC" and "REMOVE_CC" available as "standard" Herald effects 2015-06-08 10:30:22 -07:00
application Remove Herald rule edit log 2015-04-11 08:50:50 -07:00
capability Simplify the implementation of PhabricatorPolicyCapability subclasses 2014-07-25 08:25:42 +10:00
config Lay most groundwork for Herald object rules 2013-12-27 13:17:10 -08:00
controller Remove arcanist projects from Herald 2015-05-25 19:11:22 +10:00
editor Modularize mail tags 2014-08-12 12:28:41 -07:00
engine Make Herald rules more resilient 2015-05-25 19:09:23 +10:00
extension Linter fixes 2015-06-02 22:14:01 +10:00
garbagecollector Modularize the Garbage Collector 2014-01-15 10:02:24 -08:00
phid Rename PHIDType classes 2014-07-24 08:05:46 +10:00
query Make everything 1000x or 1000000x slower 2015-05-23 05:36:02 -07:00
remarkup Rename PhutilRemarkupRule subclasses 2014-08-05 00:55:43 +10:00
storage phtize all the things 2015-05-22 21:16:39 +10:00