Skip to content

Fix diff comments loaded by AJAX to load comment with diff in discussion tab

username-removed-128633 requested to merge fix-comment-on-diff-ajax-loading into master

Closes #3529 (closed).

Demonstration

comment-on-diff-ajax-loading8


This commit also fixes two minor issues:

  • Ensure notes that the current user is not allowed to see are not returned in the AJAX notes loading
  • Ensure the notes counter badge is decremented of 1 instead of 2 (fig. 1 demonstrates the issue, fig. 2 shows the fix)

fig.1 (the bug)

comment-on-diff-discussion-counter-bug

fig. 2 (the fix)

comment-on-diff-discussion-counter-fix

Merge request reports