Page MenuHomePhabricator

Make yellow "draft" bubbles more generic
ClosedPublic

Authored by epriestley on Jan 13 2017, 3:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 25, 3:45 AM
Unknown Object (File)
Fri, Apr 19, 6:05 PM
Unknown Object (File)
Thu, Apr 11, 10:54 AM
Unknown Object (File)
Tue, Apr 2, 7:25 AM
Unknown Object (File)
Mon, Apr 1, 10:24 AM
Unknown Object (File)
Sat, Mar 30, 3:55 AM
Unknown Object (File)
Thu, Mar 28, 1:00 PM
Unknown Object (File)
Mar 23 2024, 5:37 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.