]> source.dussan.org Git - sonarqube.git/commitdiff
change the link on technical debt from measures page to issues page
authorStas Vilchik <vilchiks@gmail.com>
Thu, 7 Apr 2016 11:06:33 +0000 (13:06 +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 d56cb86adb02219f8b1d42c10fb94b3b19a9c808..56913062013bfc72cca106b3071c84a656319fec 100644 (file)
@@ -59,13 +59,15 @@ export const CodeSmells = React.createClass({
     return <DomainLeak>
       <MeasuresList>
         <Measure label={getMetricName('new_effort')}>
-          <DrilldownLink component={this.props.component.key} metric="new_technical_debt">
+          <IssuesLink
+              component={this.props.component.key}
+              params={{ resolved: 'false', types: 'CODE_SMELL', facetMode: 'debt', sinceLeakPeriod: 'true' }}>
             <span
                 title={translateWithParameters('widget.as_calculated_on_x', formattedSnapshotDate)}
                 data-toggle="tooltip">
               {formatMeasure(newDebt, 'SHORT_WORK_DUR')}
             </span>
-          </DrilldownLink>
+          </IssuesLink>
         </Measure>
         <Measure label={getMetricName('new_code_smells')}>
           <IssuesLink
@@ -120,13 +122,15 @@ export const CodeSmells = React.createClass({
             </Measure>
 
             <Measure label={getMetricName('effort')}>
-              <DrilldownLink component={this.props.component.key} metric="sqale_index">
+              <IssuesLink
+                  component={this.props.component.key}
+                  params={{ resolved: 'false', types: 'CODE_SMELL', facetMode: 'debt' }}>
                 <span
                     title={translateWithParameters('widget.as_calculated_on_x', formattedSnapshotDate)}
                     data-toggle="tooltip">
                   {formatMeasure(debt, 'SHORT_WORK_DUR')}
                 </span>
-              </DrilldownLink>
+              </IssuesLink>
             </Measure>
           </MeasuresList>
           {this.renderTimeline('before', true)}