Skip to content

Draft: Consolidate showing cost factored storage size on project storage

What does this MR do and why?

Show cost factored storage size on project storage

A cost factor is applied to the storage consumed by project forks so that forks consume less namespace storage than their actual size

Docs: https://docs.gitlab.com/ee/user/usage_quotas.html#view-project-fork-storage-usage

Screenshots or screen recordings

No visual change.

How to set up and validate locally

  1. As root, navigate to /admin/application_settings/namespace_storage and set the cost factor to something less than 1 (e.g. 0.3) and save
  2. In local gitlab, fork a public project to a private fork
  3. Navigate to the forked project > Settings > Usage Quotas
  4. Observe the storage size displayed is less than original repo's storage
  5. Try disable the feature flag in step 1 and refresh the page, the storage size in the forked project should match the original repo

MR acceptance checklist

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

Related to #433516

Edited by Ammar Alakkad

Merge request reports