Commit f8759919 authored by Mark Florian's avatar Mark Florian

Merge branch 'jivanvl-remove-total-duration-ci-cd-analytics-fe' into 'master'

Remove total duration from analytics page

See merge request gitlab-org/gitlab!50102
parents 759373cf 30482a7f
......@@ -136,19 +136,13 @@ export default {
return failedCount === 0 ? 100 : ratio;
},
formattedCounts() {
const {
totalPipelines,
successfulPipelines,
failedPipelines,
totalPipelineDuration,
} = this.counts;
const { totalPipelines, successfulPipelines, failedPipelines } = this.counts;
return {
total: totalPipelines?.count,
success: successfulPipelines?.count,
failed: failedPipelines?.count,
successRatio: this.successRatio,
totalDuration: totalPipelineDuration,
};
},
areaCharts() {
......
<script>
import { formatTime } from '~/lib/utils/datetime_utility';
import { SUPPORTED_FORMATS, getFormatter } from '~/lib/utils/unit_format';
import { s__, n__ } from '~/locale';
......@@ -13,9 +12,6 @@ export default {
},
},
computed: {
totalDuration() {
return formatTime(this.counts.totalDuration);
},
statistics() {
const formatter = getFormatter(SUPPORTED_FORMATS.percentHundred);
......@@ -36,10 +32,6 @@ export default {
title: s__('PipelineCharts|Success ratio:'),
value: formatter(this.counts.successRatio, defaultPrecision),
},
{
title: s__('PipelineCharts|Total duration:'),
value: this.totalDuration,
},
];
},
},
......
......@@ -9,6 +9,5 @@ query getPipelineCountByStatus($projectPath: ID!) {
failedPipelines: pipelines(status: FAILED) {
count
}
totalPipelineDuration
}
}
......@@ -20518,9 +20518,6 @@ msgstr ""
msgid "PipelineCharts|There was an error parsing the data for the charts."
msgstr ""
msgid "PipelineCharts|Total duration:"
msgstr ""
msgid "PipelineCharts|Total:"
msgstr ""
......
......@@ -38,14 +38,5 @@ exports[`StatisticsList displays the counts data with labels 1`] = `
50.00%
</strong>
</li>
<li>
<span>
Total duration:
</span>
<strong>
00:01:56
</strong>
</li>
</ul>
`;
......@@ -57,7 +57,6 @@ describe('ProjectsPipelinesChartsApp', () => {
success: 23,
total: 34,
successRatio: 95.83333333333334,
totalDuration: 2471,
});
});
......
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