Add usage by type layout to project usage quotas transfer tab
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 |
---|---|
Success
Mobile | Desktop |
---|---|
Error
Mobile | Desktop |
---|---|
How to set up and validate locally
- Enable the
data_transfer_monitoring
feature flag.
bin/rails console
Feature.enable(:data_transfer_monitoring)
- 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 typeexit
to get back to the normal command prompt
- Open the console
- Navigate to a project in the group you just seeded.
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Peter Hegman