From f3c05216665b746045ed50406350615136abd71b Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lievremont Date: Thu, 10 Apr 2014 16:01:43 +0200 Subject: [PATCH] SONAR-5214 Remove violations_density from hard coded config values --- .../sonar/plugins/core/dashboards/GlobalDefaultDashboard.java | 2 +- .../webapp/WEB-INF/app/models/measure_filter_display_treemap.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/dashboards/GlobalDefaultDashboard.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/dashboards/GlobalDefaultDashboard.java index de760fd113a..f7933cfbbf4 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/dashboards/GlobalDefaultDashboard.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/dashboards/GlobalDefaultDashboard.java @@ -78,7 +78,7 @@ public final class GlobalDefaultDashboard extends DashboardTemplate { .addWidget(MeasureFilterTreemapWidget.ID, 2) .setProperty(MeasureFilterListWidget.FILTER_PROPERTY, filter.getId().toString()) .setProperty(MeasureFilterTreemapWidget.SIZE_METRIC_PROPERTY, "ncloc") - .setProperty(MeasureFilterTreemapWidget.COLOR_METRIC_PROPERTY, "violations_density"); + .setProperty(MeasureFilterTreemapWidget.COLOR_METRIC_PROPERTY, "coverage"); } } diff --git a/sonar-server/src/main/webapp/WEB-INF/app/models/measure_filter_display_treemap.rb b/sonar-server/src/main/webapp/WEB-INF/app/models/measure_filter_display_treemap.rb index 75cee0870fb..067f707aee5 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/models/measure_filter_display_treemap.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/models/measure_filter_display_treemap.rb @@ -31,7 +31,7 @@ class MeasureFilterDisplayTreemap < MeasureFilterDisplay super(filter, options) @size_metric = Metric.by_key(@filter.criteria(:tmSize)||'ncloc') - @color_metric = Metric.by_key(@filter.criteria(:tmColor)||'violations_density') + @color_metric = Metric.by_key(@filter.criteria(:tmColor)||'coverage') @height_percents = (@filter.criteria(:tmHeight) || DEFAULT_HEIGHT_PERCENTS).to_i @height_percents = DEFAULT_HEIGHT_PERCENTS if @height_percents<=0 @filter.metrics=([@size_metric, @color_metric].compact) -- 2.39.5