Skip to content

Disable commenting on unrelatable diff line

What does this MR do?

Fixes a bug where users can comment on diff lines that can't be commented on and attached to.

This is the case for unfolded lines and lines that appear as snippets in the discussion tab.

!5864 (merged) should be merged before this MR.

Are there points in the code the reviewer needs to double check?

😕

Why was this MR needed?

Comments were getting lost on the discussion feed, unable to find their related diff.

What are the relevant issue numbers?

Closes #20633 (closed).

Screenshots (if relevant)

diffs-comment-fix

Does this MR meet the acceptance criteria?

Merge request reports

Loading