Page MenuHomePhabricator

Share more inline "Done" code between Differential and Diffusion
ClosedPublic

Authored by epriestley on Dec 10 2018, 6:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 26, 11:56 PM
Unknown Object (File)
Fri, Nov 22, 1:08 AM
Unknown Object (File)
Mon, Nov 18, 2:19 AM
Unknown Object (File)
Wed, Nov 13, 8:30 PM
Unknown Object (File)
Sun, Nov 10, 10:59 AM
Unknown Object (File)
Wed, Nov 6, 7:02 AM
Unknown Object (File)
Oct 19 2024, 9:40 PM
Unknown Object (File)
Oct 9 2024, 10:52 AM
Subscribers
None

Details

Summary

Ref T13222. See PHI995. Before making a change to inline rendering, consolidate this code for generating the "alice added inlines comments." and "alice marked X inlines as done." transactions.

Both Differential and Diffusion have four very similar chunks of code. Merge them into shared methods and reduce code duplication across the methods.

(In the next change, I plan to hide the "done" story when the mark affects your own inline, since users marking their own inlines as "done" is generally not very interesting or useful.)

Test Plan

As author and reviewer/auditor, added inlines in Differential and Diffusion. As author, marked own and others inlines as done and undone. Got sensible transaction rendering and persistence of "Done".

Diff Detail

Repository
rP Phabricator
Branch
inline1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 21274
Build 28940: Run Core Tests
Build 28939: arc lint + arc unit