Support batch diffs on Merge Requests when in merge ref comparison mode
Summary
When merge ref comparison is active, the responses on diffs_batch.json
endpoint are not obeying the split in batches as expected.
Steps to reproduce
- Enable feature flag:
default_merge_ref_for_diffs
- Load a MR with 30+ files without conflicts with the target branch
- Check that the
diffs_batch.json
is: - being requested with param
diff_head=true
- the response includes ALL files and not just the first batch (20..?)
Example Project
What is the current bug behavior?
All diff files are rendered in the first batch response.
What is the expected correct behavior?
Diff files are split into multiple batches.