Skip to content

Switches to getNamespaceStorageStatistics for dependency proxy

What does this MR do and why?

Implements #422517+

Screenshots or screen recordings

No visual changes.

How to set up and validate locally

To simulate Dependency Proxy usage, you'll need to run following in the rails console (> rails c):

Group.all # list all groups, find the group ID you want to update
group = Group.find(GROUP_ID_HERE)
group.root_storage_statistics.dependency_proxy_size = 1.52.gigabyte
group.root_storage_statistics.container_registry_size = 1.52.gigabyte
group.root_storage_statistics.save
group.save

Visit Usage Quotas tab (http://localhost:3000/groups/gitlab-org/-/usage_quotas#storage-quota-tab) and ensure that the Dependency Proxy is displayed properly.

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