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
F15465001: D19858.id47421.diff
Wed, Apr 2, 1:32 PM
F15461602: D19858.id.diff
Tue, Apr 1, 9:28 AM
F15451007: D19858.id.diff
Fri, Mar 28, 7:37 PM
F15441024: D19858.diff
Wed, Mar 26, 4:06 PM
F15411124: D19858.diff
Wed, Mar 19, 8:51 AM
F15308958: D19858.id47437.diff
Mar 6 2025, 6:47 AM
F15308957: D19858.id47421.diff
Mar 6 2025, 6:47 AM
F15308956: D19858.id.diff
Mar 6 2025, 6:47 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