Linked file can not be fetched for an outdated MR verison
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
How to reproduce
- Create a merge request
- Go to the Changes tab and copy a link to a random line
- Rebase MR branch against a newer target branch
- Force push the changes
- Try to open the copied link
- The linked file is not fetched because the latest version doesn't contain the linked file hash
Potential fix
We could always specify MR version when providing a linked file query. Alternative: always provide a trimmed commit hash together with the file hash (will increase link length by at least 11 symbols).
Edited by 🤖 GitLab Bot 🤖