Use StatisticsCard in usage_quota/storage
What does this MR do and why?
It uses the StatisticsCard component added in !80261 (merged) in usage_quota storage app (group's usage quota > storage).
| MR | status |
|---|---|
| !80261 (merged) Add statistics card component |
|
| !82497 (merged) Adjust statistics card component |
|
| !79525 (merged) Use StatisticsBlock in usage_quota/storage |
|
Screenshots or screen recordings
| # | excess storage | purchased storage | screenshot |
|---|---|---|---|
| 1 | ![]() |
||
| 2 | ![]() |
||
| 3 | ![]() |
||
| 4 | ![]() |
How to set up and validate locally
- create a new group
- create a project inside the new group (choose a template or keep the
README.mdfile to use storage) - from
rails consolerun:
n = Group.find_by(name: "GROUP_NAME_HERE")- to add purchased storage run:
n.additional_purchased_storage_size = 1followed byn.save! - to add storage limit run:
n.additional_purchased_storage_size = 1followed byn.save!
- to add more storage to a project:
p = Project.find_by(name: "PROJECT_NAME_HERE")p.statistics.update!(repository_size: 3145600)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #350646 (closed)
Edited by Ammar Alakkad



