Page MenuHomePhabricator

Show an additional "Draft" tag on non-broadcasting revisions in a non-draft state
ClosedPublic

Authored by epriestley on Apr 3 2018, 3:47 PM.
Tags
None
Referenced Files
F14793691: D19285.id46167.diff
Sat, Jan 25, 12:55 AM
F14793690: D19285.id46151.diff
Sat, Jan 25, 12:55 AM
F14793689: D19285.id.diff
Sat, Jan 25, 12:55 AM
F14793687: D19285.diff
Sat, Jan 25, 12:55 AM
Unknown Object (File)
Tue, Jan 21, 9:54 AM
Unknown Object (File)
Fri, Jan 10, 10:34 PM
Unknown Object (File)
Mon, Dec 30, 12:58 AM
Unknown Object (File)
Mon, Dec 30, 12:58 AM
Subscribers
Restricted Owners Package

Details

Summary

Depends on D19284. Ref T13110. It's now possible to get a revision into a "Abandoned + But, Never Promoted From Draft" state. Show this in the header and provide the draft hint above the comment area.

Also, remove shouldBroadcast(). The method getShouldBroadcast() now has the same meaning.

Finally, migrate existing drafts to shouldBroadcast = false and default shouldBroadcast to true. If we don't do this, every older revision becomes a non-broadcasting revision because this flag was not explicitly set on revision creation before, only on promotion out of draft.

Test Plan

Ran migration; abandoned draft revisions and ended up in a draft + abandoned state.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable