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
Unknown Object (File)
Fri, May 30, 1:27 AM
Unknown Object (File)
Tue, May 27, 8:41 AM
Unknown Object (File)
Mon, May 26, 9:45 PM
Unknown Object (File)
May 6 2025, 12:57 AM
Unknown Object (File)
May 5 2025, 11:44 AM
Unknown Object (File)
Apr 21 2025, 10:52 AM
Unknown Object (File)
Apr 19 2025, 7:11 AM
Unknown Object (File)
Apr 18 2025, 9:10 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
Branch
inline1
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 25316
Build 34949: Run Core Tests
Build 34948: arc lint + arc unit