Skip to content

Handle diffs unfolding for batch load endpoint

Oswaldo Ferreira requested to merge osw-handle-diff-unfolding-in-batches into master

What does this MR do?

The diffs batch endpoint wasn't handling the diff unfolding when leaving comments in hidden parts of the diff.

This MR fixes that for both diff notes and draft notes, unfolding diffs just for the files loaded in the batch.

Ideally we should be doing all the work with DB queries, but currently it's not possible, so I raised #33271 (will push this forward for scheduling).

Main query plan: https://gitlab.com/snippets/1901914

#31290 (closed)

Does this MR meet the acceptance criteria?

Conformity

Performance and Testing

Edited by 🤖 GitLab Bot 🤖

Merge request reports