Skip to content

Adds tooltip to clarify container image storage

What does this MR do and why?

In some situations, we may present a non zero repository size when some atomic manifests are not tagged (so they don't show up in the list of images) but are referenced by a tagged manifest list/index (which size is zero). Thus, this leads to a situation where the sum of the size of listed images does not match the displayed size of the repository.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Before After
Screenshot_2024-01-04_at_4.30.02_pm Screenshot_2024-01-04_at_4.45.21_pm

How to set up and validate locally

  1. Setup & enable Container Registry https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/howto/registry.md

  2. Make sure to enable the metadata database https://gitlab.com/gitlab-org/container-registry/-/blob/master/docs/database-local-setup.md?ref_type=heads

  3. Follow steps in https://gitlab.com/gitlab-org/ci-cd/package-stage/package/-/wikis/Packages-Tips-&-Tricks#how-to-add-images-with-tags-quickly-to-the-registry

  4. Run the following in the terminal

    $ ./publish.sh <project-path> 5 1 127.0.0.1:5000 # creates 1 images with 5 tags
  5. Visit the container registry image list page in group & project view

  6. Visit one of the images published.

  7. Hover over the size metadata item to see the tooltip

Closes #431228 (closed)

Edited by Rahul Chanila

Merge request reports