Skip to content

Remove Usage Quotas Storage Inline Alert

What does this MR do and why?

This partially implements https://gitlab.com/gitlab-org/gitlab/-/issues/387958. Here we're removing the storage limit alert that's shown in the middle of the Usage Quotas page because we're relying on the main alert that is present at the top of the page.

Screenshots or screen recordings

Before After
inline_alert_before inline_alert_after

How to set up and validate locally

  1. Create or Pick a group, take note of its ID
  2. Create a project in this group, take note of its ID
  3. In rails console:
    1. Gitlab::CurrentSettings.update!(repository_size_limit: 1000.megabytes)
    2. p = Project.find(< your project id here >)
    3. p.statistics.update(repository_size: 1100.megabytes)
  4. Now back to your Browser, go to: https://gdk.test:3443/groups/<your-group>/-/usage_quotas#storage-quota-tab
  5. Notice you should have an alert in red at the top of the page and at the center
  6. Switch to this branch and notice the alert at the center of the page is gone.

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 Sheldon Led

Merge request reports

Loading