Skip to content

Fix project storage usage legend order of items

What does this MR do and why?

Fixes #345190, by sorting usage quota list to reflect the legend above it. Previously only the legend was sorted by space usage in descending order. This MR adds the same sorting for the list.

Screenshots or screen recordings

Project Usage Quotas

before after
Screenshot_2021-12-24_at_17.44.31 Screenshot_2021-12-24_at_16.30.26

Group Usage Quotas

before after
Screenshot_2022-01-10_at_19.46.16 Screenshot_2022-01-10_at_19.48.03

Namespace Usage Quotas

before after
Screenshot_2021-12-29_at_15.02.02 Screenshot_2021-12-29_at_14.46.56

How to set up and validate locally

This change affects 3 pages. Some of them are only available for GitLab EE, so make sure your local instance has a valid license.

  1. Group Usage Quotas:
    1. Go to your Group page
    2. Under Settings, select Usage Quotas
    3. On Usage Quotas, select the Storage Tab, URL example: http://gdk.test:3000/groups/gitlab-org/-/usage_quotas#storage-quota-tab
    4. Open each project(s) and check if the storage types are ordered by usage size
  2. Project Usage Quotas:
    1. Go to your Project page
    2. Under Settings, select Usage Quotas
    3. On Usage Quotas, select the Storage Tab, URL example: http://gdk.test:3000/gitlab-org/gitlab-test/-/usage_quotas#storage-quota-tab
    4. Check if both Usage Graph and Usage Table are ordered the same way, by usage size
  3. Personal Usage Quotas:
    1. Go to your Profile Preferences
    2. On the left sidebar, select Usage Quotas
    3. On Usage Quotas, select the Storage Tab, URL example: http://gdk.test:3000/-/profile/usage_quotas#storage-quota-tab
    4. Open each project(s) and check if the storage types are ordered by usage size

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