Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2d622631
Commit
2d622631
authored
Mar 16, 2022
by
Jose Vargas
Committed by
Jose Ivan Vargas
Mar 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert seconds to minutes for the shared runner usage chart
Changelog:fixed EE: true
parent
68428299
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
ee/app/assets/javascripts/analytics/group_ci_cd_analytics/components/shared_runner_usage.vue
.../group_ci_cd_analytics/components/shared_runner_usage.vue
+9
-1
No files found.
ee/app/assets/javascripts/analytics/group_ci_cd_analytics/components/shared_runner_usage.vue
View file @
2d622631
...
...
@@ -7,6 +7,8 @@ import { convertToGraphQLId } from '~/graphql_shared/utils';
import
{
s__
,
__
}
from
'
~/locale
'
;
import
getCiMinutesUsageByNamespace
from
'
../graphql/ci_minutes.query.graphql
'
;
const
timeFormatter
=
(
val
)
=>
val
;
export
default
{
components
:
{
GlIcon
,
...
...
@@ -55,6 +57,9 @@ export default {
},
yAxis
:
{
name
:
this
.
$options
.
i18n
.
yAxisLabel
,
axisLabel
:
{
formatter
:
timeFormatter
,
},
},
};
},
...
...
@@ -64,7 +69,10 @@ export default {
.
sort
((
a
,
b
)
=>
{
return
new
Date
(
a
.
monthIso8601
)
-
new
Date
(
b
.
monthIso8601
);
})
.
map
((
cur
)
=>
[
formatDate
(
cur
.
monthIso8601
,
'
mmm yyyy
'
),
cur
.
sharedRunnersDuration
]);
.
map
((
cur
)
=>
[
formatDate
(
cur
.
monthIso8601
,
'
mmm yyyy
'
),
parseFloat
((
cur
.
sharedRunnersDuration
/
60
).
toFixed
(
2
)),
]);
},
isDataEmpty
()
{
return
this
.
minutesUsageDataByMonth
.
length
===
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment