Page MenuHomePhabricator

Make "first broadcast" rules for Differential drafts more general
ClosedPublic

Authored by epriestley on Nov 28 2017, 6:44 PM.
Tags
None
Referenced Files
F20295636: D18801.diff
Wed, Jun 10, 6:14 PM
Unknown Object (File)
Apr 2 2026, 1:35 AM
Unknown Object (File)
Mar 7 2026, 7:54 AM
Unknown Object (File)
Mar 5 2026, 3:53 AM
Unknown Object (File)
Jan 20 2026, 11:11 PM
Unknown Object (File)
Nov 29 2025, 12:20 PM
Unknown Object (File)
Nov 4 2025, 9:31 AM
Unknown Object (File)
Oct 31 2025, 11:26 PM
Subscribers
None

Details

Summary

See PHI228. Ref T2543. The current logic gets this slightly wrong: prototypes are off, you create a draft with --draft, then promote it with "Request Review". This misses both branches.

Instead, test these conditions a little more broadly. We also need to store broadcast state since getIsNewObject() isn't good enough with this workflow.

Test Plan
  • With prototypes on and autopromotion, got a rich email after builds finished.
  • With prototypes off, got a rich email immediately.
  • With prototypes off and --draft, got a rich email after "Request Review".

Diff Detail

Repository
rP Phabricator
Branch
draft1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 18884
Build 25459: Run Core Tests
Build 25458: arc lint + arc unit