Move project storage app to core codebase
What does this MR do and why?
This moves the files related to Project Usage Quotas to the Core app so that the page is available again for Community Edition
Fixes: #352624 (closed)
Screenshots or screen recordings
I'm putting screenshots of all pages impacted by this code change, but the actual page changing is only Project Storage Usage Quotas. For the other Usage Quotas pages, they'll be available for CE once we finish with &7176 (closed).
Community Edition
FOSS_ONLY=1 gdk restart
Project Usage Quotas:
master |
led/352624-move-storage-app-core-project |
---|---|
![]() |
![]() |
The other pages should render 404
Enterprise Edition
Project Usage Quotas:
master |
led/352624-move-storage-app-core-project |
---|---|
![]() |
![]() |
Personal Usage Quotas:
master |
led/352624-move-storage-app-core-project |
---|---|
![]() |
![]() |
Namespace Usage Quotas:
master |
led/352624-move-storage-app-core-project |
---|---|
![]() |
![]() |
How to set up and validate locally
To execute your local gdk
in CE mode, run:
FOSS_ONLY=1 gdk restart
To add some data to your project storage you can follow these docs or run the code below in your rails console
:
project = Project.find(<project_id>)
project.statistics.update(
repository_size: 8_000_000,
lfs_objects_size: 7_000_000,
packages_size: 6_000_000,
build_artifacts_size: 5_000_000,
wiki_size: 4_000_000,
container_registry_size: 3_000_000,
snippets_size: 2_000_000,
uploads_size: 1_000_000
)
Then checkout master
and led/352624-move-storage-app-core-project
and compare the following pages:
- Project Usage Quotas:
http://gdk.test:3000/<group id>/<project id>/-/usage_quotas
- Personal Usage Quotas: http://gdk.test:3000/-/profile/usage_quotas#storage-quota-tab
- Namespace Usage Quotas:
http://gdk.test:3000/groups/<group id>/-/usage_quotas#storage-quota-tab
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.