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
How to set up and validate locally
Mock statistics via:
- Open a rails console:
rails c
- Find a namespace, e.g.
group = Group.last
- Find a project in that group, e.g.
project = group.all_projects.last
- Update container registry size on that project:
project.statistics.update!(container_registry_size: 8.megabytes)
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Kos Palchyk