Skip to content

Add usage by type layout to project usage quotas transfer tab

Peter Hegman requested to merge 387396-usage-by-type-section into master

What does this MR do and why?

Related to #387396

We are building a dashboard at the group and project level to track egress data transfer. We started with the group level and now are moving onto the project level. This MR builds the percentage bar that shows the breakdown of each egress transfer type. In a future MR we will build the table that is shown below the percentage bar.

To learn more about how we will be tracking egress transfer see https://gitlab.com/groups/gitlab-com/-/epics/1664

Screenshots or screen recordings

Loading

Mobile Desktop
Screenshot_2023-04-26_at_11.01.59_AM Screenshot_2023-04-26_at_10.32.27_AM

Success

Mobile Desktop
Screenshot_2023-04-28_at_1.23.59_PM Screenshot_2023-04-28_at_1.22.50_PM

Error

Mobile Desktop
Screenshot_2023-04-26_at_11.05.42_AM Screenshot_2023-04-26_at_11.05.06_AM

How to set up and validate locally

  1. Enable the data_transfer_monitoring feature flag.
bin/rails console
Feature.enable(:data_transfer_monitoring)
  1. Seed the data
    • Open the console bin/rails console
    • Go to https://gitlab.com/-/snippets/2522604
    • Copy the class and paste it in the console
    • Find a group with some projects in it and make note of the group id (displayed on the overview page)
    • Run PopulateDataTransfer.run(<group_id>) in the console
    • Press q then type exit to get back to the normal command prompt
  2. Navigate to a project in the group you just seeded.
  3. Navigate to Settings -> Usage quotas -> Transfer

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 Peter Hegman

Merge request reports

Loading