Skip to content

Replace projects storage placeholder with usage-graph

Ammar Alakkad requested to merge 334888-use-usage-graph-in-project-storage into master

What does this MR do?

It replaces the placeholder in projects' storage counter with usage-graph component.

Note: the MR doesn't include a changelog because the changes are behind :project_storage_ui feature flag.

Screenshots

before after
Screen_Shot_2021-09-01_at_4.29.59_PM Screen_Shot_2021-09-01_at_4.28.11_PM

How to setup and validate locally

  1. Insert dummy project statistics data from rails console:
project = Project.find(<project_id>)

project.statistics.update(
  repository_size: 3900000,
  lfs_objects_size: 4800000,
  build_artifacts_size: 400000,
  pipeline_artifacts_size: 400000,
  wiki_size: 300000,
  packages_size: 3800000
)
  1. Enable project_storage_ui feature flag Feature.enable(:project_storage_ui)
  2. Visit /<namespace>/<project>/-/usage_quotas (make sure you've >= maintainer permission)
  3. Observe the usage graph on the page

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #334888

Edited by Ammar Alakkad

Merge request reports