]> source.dussan.org Git - sonarqube.git/commitdiff
fix the order of code smells and technical debt in the leak period
authorStas Vilchik <vilchiks@gmail.com>
Thu, 7 Apr 2016 11:07:14 +0000 (13:07 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 7 Apr 2016 11:33:29 +0000 (13:33 +0200)
server/sonar-web/src/main/js/apps/overview/main/code-smells.js

index 56913062013bfc72cca106b3071c84a656319fec..95fae43f517bc0cfb2af83cbdeeb22a218e1d0c1 100644 (file)
@@ -58,25 +58,25 @@ export const CodeSmells = React.createClass({
 
     return <DomainLeak>
       <MeasuresList>
-        <Measure label={getMetricName('new_effort')}>
+        <Measure label={getMetricName('new_code_smells')}>
           <IssuesLink
               component={this.props.component.key}
-              params={{ resolved: 'false', types: 'CODE_SMELL', facetMode: 'debt', sinceLeakPeriod: 'true' }}>
+              params={{ resolved: 'false', types: 'CODE_SMELL', sinceLeakPeriod: 'true' }}>
             <span
                 title={translateWithParameters('widget.as_calculated_on_x', formattedSnapshotDate)}
                 data-toggle="tooltip">
-              {formatMeasure(newDebt, 'SHORT_WORK_DUR')}
+              {formatMeasure(newCodeSmells, 'SHORT_INT')}
             </span>
           </IssuesLink>
         </Measure>
-        <Measure label={getMetricName('new_code_smells')}>
+        <Measure label={getMetricName('new_effort')}>
           <IssuesLink
               component={this.props.component.key}
-              params={{ resolved: 'false', types: 'CODE_SMELL', sinceLeakPeriod: 'true' }}>
+              params={{ resolved: 'false', types: 'CODE_SMELL', facetMode: 'debt', sinceLeakPeriod: 'true' }}>
             <span
                 title={translateWithParameters('widget.as_calculated_on_x', formattedSnapshotDate)}
                 data-toggle="tooltip">
-              {formatMeasure(newCodeSmells, 'SHORT_INT')}
+              {formatMeasure(newDebt, 'SHORT_WORK_DUR')}
             </span>
           </IssuesLink>
         </Measure>