From 1a8ebb514b9af397207f2305ffa225eca725512b Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Wed, 25 Nov 2015 15:53:06 +0100 Subject: [PATCH] SONAR-7067 Remove severity distribution from the overview page --- .../src/main/js/apps/overview/main/issues.js | 17 ----------------- .../src/main/js/apps/overview/main/main.js | 18 +----------------- 2 files changed, 1 insertion(+), 34 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/overview/main/issues.js b/server/sonar-web/src/main/js/apps/overview/main/issues.js index 511353dbfbb..3f742f035fa 100644 --- a/server/sonar-web/src/main/js/apps/overview/main/issues.js +++ b/server/sonar-web/src/main/js/apps/overview/main/issues.js @@ -40,23 +40,6 @@ export const GeneralIssues = React.createClass({ {formatMeasure(this.props.leak.debt, 'SHORT_WORK_DUR')} - -
- - - {formatMeasure(this.props.leak.issuesSeverities[0], 'SHORT_INT')} - -
-
- - - {formatMeasure(this.props.leak.issuesSeverities[1], 'SHORT_INT')} - -
-
 
-
{this.renderTimeline('after')} ; diff --git a/server/sonar-web/src/main/js/apps/overview/main/main.js b/server/sonar-web/src/main/js/apps/overview/main/main.js index 470b92f49d1..7d4037a9150 100644 --- a/server/sonar-web/src/main/js/apps/overview/main/main.js +++ b/server/sonar-web/src/main/js/apps/overview/main/main.js @@ -61,8 +61,7 @@ export default React.createClass({ Promise.all([ this.requestMeasures(), this.requestIssuesAndDebt(), - this.requestLeakIssuesAndDebt(), - this.requestIssuesLeakSeverities() + this.requestLeakIssuesAndDebt() ]).then(responses => { let measures = this.getMeasuresValues(responses[0], 'value'); measures.issues = responses[1].issues; @@ -73,7 +72,6 @@ export default React.createClass({ leak = this.getMeasuresValues(responses[0], 'var' + this.props.leakPeriodIndex); leak.issues = responses[2].issues; leak.debt = responses[2].debt; - leak.issuesSeverities = SEVERITIES.map(s => getFacetValue(responses[3].facet, s)); } this.setState({ @@ -122,20 +120,6 @@ export default React.createClass({ }); }, - requestIssuesLeakSeverities() { - if (!this.state.leakPeriodDate) { - return Promise.resolve(); - } - - let createdAfter = moment(this.state.leakPeriodDate).format('YYYY-MM-DDTHH:mm:ssZZ'); - - return getFacet({ - componentUuids: this.props.component.id, - createdAfter: createdAfter, - resolved: 'false' - }, 'severities'); - }, - requestHistory () { let coverageMetric = this.state.coverageMetricPrefix + 'coverage'; let metrics = [].concat(HISTORY_METRICS_LIST, coverageMetric).join(','); -- 2.39.5