From: Stas Vilchik Date: Wed, 6 Apr 2016 13:14:29 +0000 (+0200) Subject: SONAR-7401 display total remediation effort X-Git-Tag: 5.5-RC1~20 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=83f002f5b25f7b89fcbd6b08c6f86a1e35192659;p=sonarqube.git SONAR-7401 display total remediation effort --- 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'}}