Commit ee407a3d authored by Jose Vargas's avatar Jose Vargas

Change minutes field to shared_runners_duration

This changes the use of the minutes field for the
group runners analytics page

Changelog: fixed
EE: true
parent 105bd5f3
......@@ -64,7 +64,7 @@ export default {
.sort((a, b) => {
return new Date(a.monthIso8601) - new Date(b.monthIso8601);
})
.map((cur) => [formatDate(cur.monthIso8601, 'mmm yyyy'), cur.minutes]);
.map((cur) => [formatDate(cur.monthIso8601, 'mmm yyyy'), cur.sharedRunnersDuration]);
},
isDataEmpty() {
return this.minutesUsageDataByMonth.length === 0;
......
......@@ -3,13 +3,7 @@ query getCiMinutesUsageByNamespace($namespaceId: NamespaceID) {
nodes {
month
monthIso8601
minutes
projects {
nodes {
name
minutes
}
}
sharedRunnersDuration
}
}
}
......@@ -19,34 +19,25 @@ export const ciMinutesUsageNamespace = {
{
month: 'December',
monthIso8601: '2021-12-01',
minutes: 110,
projects: { nodes: [], __typename: 'CiMinutesProjectMonthlyUsageConnection' },
sharedRunnersDuration: 110,
__typename: 'CiMinutesNamespaceMonthlyUsage',
},
{
month: 'November',
monthIso8601: '2021-11-01',
minutes: 95,
projects: {
nodes: [
{ name: 'Html5 Boilerplate', minutes: 0, __typename: 'CiMinutesProjectMonthlyUsage' },
],
__typename: 'CiMinutesProjectMonthlyUsageConnection',
},
sharedRunnersDuration: 95,
__typename: 'CiMinutesNamespaceMonthlyUsage',
},
{
month: 'October',
monthIso8601: '2021-10-01',
minutes: 85,
projects: { nodes: [], __typename: 'CiMinutesProjectMonthlyUsageConnection' },
sharedRunnersDuration: 85,
__typename: 'CiMinutesNamespaceMonthlyUsage',
},
{
month: 'September',
monthIso8601: '2021-09-01',
minutes: 85,
projects: { nodes: [], __typename: 'CiMinutesProjectMonthlyUsageConnection' },
sharedRunnersDuration: 85,
__typename: 'CiMinutesNamespaceMonthlyUsage',
},
],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment