Render textual LFS files in UI
What does this MR do and why?
Render textual LFS files in UI
Fixes #383436 (closed)
Prior to this change we would never render LFS files with
fileType: 'text'
. Instead we would render the pointer in the UI.
Changelog: fixed
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
- Configure GDK with lfs
- Create a new project called
render-lfs-pointers
insidegitlab-org
(if you don't havegitlab-org
create somewhere else but remember to update the commands coming up) - Clone the project
git remote add origin ssh://git@gdk.test:2222/gitlab-org/.git
- Create a non-binary lfs file e.g.
echo 'test' > test.text
- Track
*.text
in lfsgit lfs track '*.text'
git add . && git commit -m 'Create lfs file' && git push origin main
- open gdk.text:3000/gitlab-org/render-lfs-pointers/-/blob/main/test.text
- Check the blob is rendered
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.
Edited by Joe Woodward