Skip to content

Add a usage quotas UI state for SaaS project limits = 0 state

Kos Palchyk requested to merge 429072-distinguishing-limit-types-cards into master

What does this MR do and why?

Adds a new statistics card for Usage Quotas Storage tab, for cases when project limits are applied but no actual limits are enforced (project limits == 0).

Related to #429072

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

You'll need a SaaS instance, with project limits set to 0. To set the project limits to 0, run in rails c:

Gitlab::CurrentSettings.update!(repository_size_limit: 0)

Alternatively, you can test this using storybook (http://localhost:9002/?path=/story/ee-usage-quotas-storage-namespace-storage-app--saas-with-no-limits).

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