Fix capitalisation of container registry image path
What does this MR do and why?
After enabling the [Feature flag] Rollout of `container_registry_s... (#366808 - closed) for gitlab-org
group (related MR: Display container image shortened path with opt... (!91548 - merged)), noticed that some image names were capitalised, so MR fixes this issue.
Visible here: https://gitlab.com/groups/gitlab-org/-/container_registries
Screenshots or screen recordings
Before | After |
---|---|
![]() |
![]() |
How to set up and validate locally
- Setup & enable Container Registry https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/howto/registry.md
- Create a new project under
gitlab-org
with capital letters in the project path exampleCNG-mirror
- Run the following
docker pull hello-world docker tag hello-world 127.0.0.1:5000/gitlab-org/cng-mirror docker push 127.0.0.1:5000/gitlab-org/cng-mirror
- Visit the container registry page for group http://gdk.test:3000/groups/gitlab-org/-/container_registries & make sure the images are listed & show their full path.
- Enable feature
$ rails c > Feature.enable(:container_registry_show_shortened_path)
- Refresh above page to see button to expand shortened path & Make image path is not capitalised.
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 #364290 (closed)
Edited by Rahul Chanila