Implement support of comparing diff versions
What does this MR do and why?
When comparing version to latest, we need to support finding a MergeRequestDiff by diff_id from params. We also need to
support comparing versions (by diff_id and start_sha params).
To support that, we modify Gitlab::MergeRequests::DiffVersion to do that depending on the params set.
This is behind rapid_diffs_on_mr_show feature flag.
References
How to set up and validate locally
- Select a diff version in MR page.
- Copy the URL of that page and append
rapid_diffs=trueparam. - Compare diffs and they should match.
- Compare 2 diff versions in MR page.
- Copy the URL of that page and append
rapid_diffs=trueparam. - Compare diffs and they should match.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #466149 (closed)
Edited by Patrick Bajao