Fix linking to line number on parallel diff creating empty discussion box
What does this MR do?
EE MR, https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/2207
Fix linking to line number on parallel diff creating empty discussion box when there are discussions on the same line.
Are there points in the code the reviewer needs to double check?
- Using actual inline/parallel diff ajax responses in specs
Reproduction:
- Create a MR with some changes
- Switch to the parallel "Side-by-side" view,
?view=parallel
- Create a note on the diff and resolve it
- Click the line number that has the discussion on it. Your URL should look similar to this
/diffs?view=parallel#3f58c61b62d64910afb975d31ceed28eb21c34c1_28_35
- Copy and visit the URL
- Notice, only the line is highlighted (no empty gray discussion box is shown)
Why was this MR needed?
Linking to line number on parallel diff when there are discussions on the same line, created an empty discussion box.
This regressed in 9.2 from https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11327/diffs#192369e4731a70b7fe3155cc69bbbd55b33c7932_281_287
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary - Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Branch has no merge conflicts with master
(if it does - rebase it please) -
Squashed related commits together
What are the relevant issue numbers?
Closes #34010 (closed)