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
F18987473: D21642.diff
Mon, Nov 17, 9:29 PM
F18987471: D21642.id51507.diff
Mon, Nov 17, 9:29 PM
F18836013: D21642.diff
Oct 26 2025, 8:47 PM
F18824170: D21642.id51507.diff
Oct 23 2025, 2:35 PM
F18807638: D21642.diff
Oct 19 2025, 2:38 AM
F18782690: D21642.id51508.diff
Oct 13 2025, 2:21 AM
F18759825: D21642.id.diff
Oct 6 2025, 6:05 AM
F18670711: D21642.diff
Sep 25 2025, 1:12 AM
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