Skip to content

Fix collapsed diff discussions expanding when adding a new discussion

What does this MR do and why?

Fixes Adding a new diff line comment expands all disc... (#480610 - closed).

This MR fixes the expansion of collapsed diff discussions when you add another discussion to the diff file.

Existing discussions are re-added to the diff file because of this watcher, so we have to work around this.

Screenshots or screen recordings

Before After
Screen_Recording_2024-10-03_at_04.44.34 Screen_Recording_2024-10-03_at_04.43.16

How to set up and validate locally

  1. Open any MR with changes
  2. Start a thread on any diff line
  3. Collapse that thread
  4. Add another thread on a different diff line
  5. Observe that the collapsed thread stayed collapsed

Merge request reports

Loading