Page MenuHomePhabricator

Make yellow "draft" bubbles more generic
ClosedPublic

Authored by epriestley on Jan 13 2017, 3:37 PM.
Tags
None
Referenced Files
F18872223: D17205.diff
Nov 5 2025, 2:57 AM
F18866061: D17205.id41366.diff
Nov 3 2025, 3:18 PM
F18769002: D17205.id41368.diff
Oct 8 2025, 6:09 AM
F18765122: D17205.id.diff
Oct 7 2025, 9:37 AM
F18754981: D17205.diff
Oct 5 2025, 2:50 AM
F18566057: D17205.id.diff
Sep 9 2025, 2:16 PM
F18500478: D17205.diff
Sep 4 2025, 9:05 PM
F18098770: D17205.id41368.diff
Aug 8 2025, 11:05 PM
Subscribers
None

Details

Summary

Fixes T12095. Ref T6660. The old code for this was specific to Differential, using the DifferentialDraft table.

Instead, make the EditEngine / VersionedDraft code create and remove a <objectPHID, authorPHID> edge when a particular author creates drafts.

Some applications have drafts beyond VersionedDrafts, notably inline comments. Before writing "yes, draft" or "no, no draft", ask the object if it has any custom draft stuff we need to know about.

This should fix all the yellow bubble bugs I created in T11114 and allow us to bring the feature to Audit fairly easily.

Test Plan

Created and deleted comments and inlines, reloading the list view after each change. Couldn't find a way to break the list view anymore.

Diff Detail

Repository
rP Phabricator
Branch
rev2
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 15254
Build 20057: Run Core Tests
Build 20056: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Jan 13 2017, 4:50 PM
This revision was automatically updated to reflect the committed changes.