Support fully qualified refs for find file
What does this MR do and why?
Supports fully qualified refs for find file view
- updates find file controller to use fully qualified ref when listing files
- update frontend components to link to blob urls with
ref_type
parameter
Contributes to: #219583 (closed)
How to set up and validate locally
- enable the
use_ref_type_parameter
feature flag - create a project
- make a commit with some change(
echo 'hello' > hello.txt && git add hello.txt && git commit -m 'hello'
) - add a tag and push it (
git tag 'hello' && git push origin hello
) - make another change (
echo 'hello again ' >> hello_again.txt && git add hello_again.txt && git commit -m 'hello again'
) - make a branch with the same name and push (
git checkout -b hello && git push origin refs/heads/hello
) - navigate to the find_file view (e.g
http://127.0.0.1:3000/root/projectname/-/find_file/main
) - use the drop down menu to switch between branch and tag and see that the files in each are as expected.
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.
Related to #219583 (closed)
Edited by Jerry Seto