Skip to content

Adds container registry to namespace projects query

What does this MR do and why?

Fixes #365417 (closed)

Adds missing per project containerRegistrySize to the graphql query on namespace Usage Quotas

I forgot to add this query piece while working on !86505 (merged)

Screenshots or screen recordings

localhost_3000_groups_gitlab-instance-60b25789_-usage_quotas__3

How to set up and validate locally

Mock statistics via:

  1. Open a rails console: rails c
  2. Find a namespace, e.g. group = Group.last
  3. Find a project in that group, e.g. project = group.all_projects.last
  4. Update container registry size on that project: project.statistics.update!(container_registry_size: 8.megabytes)
  5. Open that namespace in the browser and verify that the Usage Quota statistics for container registry for that project equals the value set earlier

Or actually push to the container registry

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Kos Palchyk

Merge request reports