From 83f002f5b25f7b89fcbd6b08c6f86a1e35192659 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Wed, 6 Apr 2016 15:14:29 +0200 Subject: [PATCH] SONAR-7401 display total remediation effort --- .../src/main/js/components/source-viewer/measures-overlay.js | 5 +++++ .../templates/measures/_source-viewer-measures-issues.hbs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/server/sonar-web/src/main/js/components/source-viewer/measures-overlay.js b/server/sonar-web/src/main/js/components/source-viewer/measures-overlay.js index 5ab4958e57e..2fbcd936ab1 100644 --- a/server/sonar-web/src/main/js/components/source-viewer/measures-overlay.js +++ b/server/sonar-web/src/main/js/components/source-viewer/measures-overlay.js @@ -120,6 +120,11 @@ export default ModalView.extend({ }, calcAdditionalMeasures (measures) { + measures.issuesRemediationEffort = + (measures.sqale_index_raw || 0) + + (measures.reliability_remediation_effort_raw || 0) + + (measures.security_remediation_effort_raw || 0); + if (measures.lines_to_cover && measures.uncovered_lines) { measures.covered_lines = measures.lines_to_cover_raw - measures.uncovered_lines_raw; } diff --git a/server/sonar-web/src/main/js/components/source-viewer/templates/measures/_source-viewer-measures-issues.hbs b/server/sonar-web/src/main/js/components/source-viewer/templates/measures/_source-viewer-measures-issues.hbs index 58f0df051a6..1ea0ab41d0e 100644 --- a/server/sonar-web/src/main/js/components/source-viewer/templates/measures/_source-viewer-measures-issues.hbs +++ b/server/sonar-web/src/main/js/components/source-viewer/templates/measures/_source-viewer-measures-issues.hbs @@ -5,7 +5,7 @@ {{t 'metric.violations.name'}}
- {{default measures.sqale_index 0}} + {{formatMeasure measures.issuesRemediationEffort 'SHORT_WORK_DUR'}} {{t 'metric.sqale_index.short_name'}}
-- 2.39.5