Skip to content

Move project storage app to core codebase

Sheldon Led requested to merge led/352624-move-storage-app-core-project into master

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
ce_master_project_usage_quotas ce_108686_project_usage_quotas

The other pages should render 404

Enterprise Edition

Project Usage Quotas:

master led/352624-move-storage-app-core-project
ee_master_project_usage_quotas ee_108686_project_usage_quotas

Personal Usage Quotas:

master led/352624-move-storage-app-core-project
ee_master_personal_usage_quotas ee_108686_personal_usage_quotas

Namespace Usage Quotas:

master led/352624-move-storage-app-core-project
ee_master_namespace_usage_quotas ee_108686_namespace_usage_quotas

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:

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