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
Unknown Object (File)
Wed, Jan 22, 2:43 AM
Unknown Object (File)
Tue, Jan 21, 3:21 PM
Unknown Object (File)
Sun, Jan 12, 6:47 AM
Unknown Object (File)
Fri, Jan 3, 5:25 PM
Unknown Object (File)
Dec 29 2024, 6:24 PM
Unknown Object (File)
Dec 17 2024, 7:42 PM
Unknown Object (File)
Dec 10 2024, 2:58 AM
Unknown Object (File)
Dec 10 2024, 2:57 AM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable