1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-21 09:48:47 +02:00
phorge-phorge/src/applications/phriction
epriestley 623aaf488d Consolidate "Subscribers" Herald field value logic
Summary:
Ref T8455. The Herald code in general isn't nearly as modular as it should be, and the subscriber code particularly has some legacy cruft. This is making it fragile and causing the issue described in T8455.

Currently, each Herald adapter has essentially identical code which it uses to determine which users are subscribed to an object. Instead, share code between object types.

I removed "explicitCCs":

  - The value was always identical to doing the query in the common/standard way.
  - They were only used to print a diagnostic message on transcripts, which I think is no longer relevant.
    - I believe it predates transactions, so when it was added you couldn't figure out the old object state by looking at the transaction history. Now, CC changes are recorded there, so there's no need to restate the CC state on the transcript.
    - Even if we do want to restore this (or something similar), we can do it directly from Herald now.

Test Plan:
  - Created rules that use the "CCs" field in Herald, Pholio, Maniphest and Differential.
  - Updated objects in each application.
  - Observed valid field reads in the tranascript.
  - Grepped for `FIELD_CC`.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T8455

Differential Revision: https://secure.phabricator.com/D13177
2015-06-08 10:18:01 -07:00
..
application Implement a scope selector for the global search 2015-04-22 14:31:36 -07:00
conduit phtize all the things 2015-05-22 21:16:39 +10:00
config Add getGroup to ConfigOptions 2015-02-09 13:10:56 -08:00
constants Remove unused PhrictionActionConstants class 2015-06-03 20:23:08 +10:00
controller phtize all the things 2015-05-22 21:16:39 +10:00
editor Move all ApplicationTransaction publishing to daemons 2015-06-03 18:59:29 -07:00
herald Consolidate "Subscribers" Herald field value logic 2015-06-08 10:18:01 -07:00
mail phtize all the things 2015-05-22 21:16:39 +10:00
markup Add some missing type hints 2015-05-05 07:33:00 +10:00
phid Separate handle "status" and "availability" 2015-05-14 11:14:44 -07:00
query phtize all the things 2015-05-22 21:16:39 +10:00
search Rename PhabricatorSearchField to PhabricatorSearchFieldDocumentType 2015-06-05 11:01:25 -07:00
storage phtize all the things 2015-05-22 21:16:39 +10:00