Skip to content

Add container registry storage type to project storage list

Related to #356187 (closed)

Adds "Container Registry" row to project usage quotas statistics.

Screenshots and recordings

localhost_3000_gitlab-instance-858b5cf1_Monitoring_-usage_quotas__2

Steps to reproduce

  1. Run rails console rails c
  2. Find a project id that you'll add Container Registry to, via Project.all
  3. Enable feature for that project, e.g. Feature.enable(:container_registry_project_statistics, Project.find( 42 ))
  4. Set Container Registry size of it via Project.find(42).statistics.update(container_registry_size: 3_000_000)
  5. Open usage quotas for this project and note the new Container Registry entry in the table
Edited by Kos Palchyk

Merge request reports