Page MenuHomePhabricator

Consolidate "Subscribers" Herald field value logic
ClosedPublic

Authored by epriestley on Jun 6 2015, 11:24 AM.
Tags
None
Referenced Files
F14360415: D13177.diff
Fri, Dec 20, 10:17 AM
Unknown Object (File)
Wed, Dec 11, 3:52 PM
Unknown Object (File)
Fri, Nov 29, 10:30 AM
Unknown Object (File)
Fri, Nov 29, 10:30 AM
Unknown Object (File)
Nov 19 2024, 5:45 AM
Unknown Object (File)
Nov 15 2024, 11:08 AM
Unknown Object (File)
Nov 11 2024, 7:41 AM
Unknown Object (File)
Nov 9 2024, 9:16 AM
Subscribers

Details

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.

Diff Detail

Repository
rP Phabricator
Branch
hcc1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 6584
Build 6606: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

epriestley retitled this revision from to Consolidate "Subscribers" Herald field value logic.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
  • Remove slightly more code.
btrahan edited edge metadata.
This revision is now accepted and ready to land.Jun 8 2015, 4:10 PM
This revision was automatically updated to reflect the committed changes.