Add diff_by_file_hash merge request action
What does this MR do and why?
Add backend API for Linked file feature (previously: Pinned file) (#387246 - closed).
This MR adds a diff_by_file_hash
merge request action which accepts file_hash
and returns a diff file for a given hash.
How to set up and validate locally
- Checkout this branch
- Apply changes from Add pinned file to merge requests (!137544 - merged)
- Enable
pinned_file
feature flag - Open any merge request with at least 2 files changed
- Open a link to some line of the second file in a new tab
- File should become pinned in the new tab
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.