'new_overall_coverage': 'new_overall_uncovered_lines',
'new_overall_line_coverage': 'new_overall_uncovered_lines',
- 'new_overall_branch_coverage': 'new_overall_uncovered_conditions'
+ 'new_overall_branch_coverage': 'new_overall_uncovered_conditions',
+
+ 'new_sqale_debt_ratio': 'new_technical_debt'
};
url += 'resolved=false'
end
else
- url = url_for(options.merge({:controller => 'drilldown', :action => 'measures', :metric => metric_key, :id => options[:resource]||@resource.id}))
+ if metric_key == 'new_sqale_debt_ratio'
+ url = url_for(options.merge({:controller => 'drilldown', :action => 'measures', :metric => 'new_technical_debt', :highlight => 'new_sqale_debt_ratio', :id => options[:resource]||@resource.id}))
+ else
+ url = url_for(options.merge({:controller => 'drilldown', :action => 'measures', :metric => metric_key, :id => options[:resource]||@resource.id}))
+ end
end
url