Page MenuHomePhabricator

Fix an issue where inlines could be duplicated in the client list
ClosedPublic

Authored by epriestley on Mar 18 2021, 6:33 PM.
Tags
None
Referenced Files
F19933827: D21642.id51540.diff
Sat, Apr 11, 7:24 AM
F19932951: D21642.id51540.diff
Fri, Apr 10, 9:25 PM
F19929308: D21642.id51508.diff
Wed, Apr 8, 3:44 PM
F19922423: D21642.id51507.diff
Mon, Apr 6, 6:25 PM
F19910929: D21642.id51508.diff
Thu, Apr 2, 10:12 AM
F19899597: D21642.diff
Sun, Mar 29, 9:45 PM
F19898772: D21642.id51540.diff
Sun, Mar 29, 3:41 PM
F19891111: D21642.diff
Thu, Mar 26, 11:32 PM
Subscribers
None

Details

Summary

Ref T13559. D21261 added caching here, but the logic in rebuilding inlines wasn't quite correct, and could lead to us double-appending.

Instead, when rebuilding, unconditionally discard the old list.

Test Plan
  • Added inline comments to a file in Differential.
  • Marked some done.
  • Scrolled so the inline comment header was visible, saw "X / Y Comments" button in header.
  • Clicked "Show 20 more lines" on the changeset with inlines (or toggle "View Unified" / "View Side-by-Side", or other interactions likely work too).
    • Before: saw "X / Y" change improperly (because inlines in that file were double-counted).
    • After: saw stable count.
  • Grepped for "differential-inline-comment-refresh", got no hits, concluded this event has no listeners.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable