GitLab merge requestshttps://ux.gitlabdemo.cloud/annabel/gitlab/-/merge_requests2022-05-18T20:56:14Zhttps://ux.gitlabdemo.cloud/annabel/gitlab/-/merge_requests/1Draft: Add shared runner duration to table2022-05-18T20:56:14ZAnnabel GrayDraft: Add shared runner duration to table### What does this MR do and why?
Adds the shared runner duration the the project table for group/personal namespaces.
### Screenshots or screen recordings
| Before | After |
| ------ | ------ |
| <img src="/uploads/0f61c75fce5fbb04...### What does this MR do and why?
Adds the shared runner duration the the project table for group/personal namespaces.
### Screenshots or screen recordings
| Before | After |
| ------ | ------ |
| <img src="/uploads/0f61c75fce5fbb04e18e0581044cd048/Screen_Shot_2022-05-18_at_2.44.26_PM.png" width="250px"> | <img src="/uploads/87de76ece086c6d4387c5c3c3d7ba723/Screen_Shot_2022-05-18_at_2.44.36_PM.png" width="200px"> |
### How to set up and validate locally
### Seed data
```
ApplicationSetting.current.update(shared_runners_minutes: 400)
project = Project.find(20)
root_namespace = project.root_namespace
namespace_usage = Ci::Minutes::NamespaceMonthlyUsage.find_or_create_current(namespace_id: root_namespace)
Ci::Minutes::NamespaceMonthlyUsage.update_counters(namespace_usage, amount_used: 100, shared_runners_duration: 100)
project_usage = Ci::Minutes::ProjectMonthlyUsage.find_or_create_current(project_id: project)
Ci::Minutes::ProjectMonthlyUsage.update_counters(project_usage, amount_used: 100, shared_runners_duration: 100)
```
### View changes
1. Visit `Group > Settings > Usage Quotas`
2. View the project table at the bottom of the view
<!--
Example below:
1. Enable the invite modal
```ruby
Feature.enable(:invite_members_group_modal)
```
1. In rails console enable the experiment fully
```ruby
Feature.enable(:member_areas_of_focus)
```
1. Visit any group or project member pages such as `http://127.0.0.1:3000/groups/flightjs/-/group_members`
1. Click the `invite members` button.
-->
### 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](https://docs.gitlab.com/ee/development/code_review.html#acceptance-checklist) for this MR.
<!-- template sourced from https://gitlab.com/gitlab-org/gitlab/-/blob/master/.gitlab/merge_request_templates/Default.md -->Milestone 1Annabel GrayAnnabel Gray