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
F14829958: D19858.diff
Wed, Jan 29, 6:54 PM
Unknown Object (File)
Tue, Jan 28, 4:23 AM
Unknown Object (File)
Tue, Jan 28, 4:23 AM
Unknown Object (File)
Tue, Jan 28, 4:23 AM
Unknown Object (File)
Mon, Jan 27, 10:08 PM
Unknown Object (File)
Sat, Jan 25, 3:51 PM
Unknown Object (File)
Sat, Jan 25, 2:44 AM
Unknown Object (File)
Sat, Jan 25, 2:44 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable