From: Julien Lancelot Date: Thu, 12 Dec 2013 08:14:51 +0000 (+0100) Subject: SONAR-4960 Remove Extra Metric 3 X-Git-Tag: 4.2~1007 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=17accd13be4405381bc71ec25f1a8e08da39a258;p=sonarqube.git SONAR-4960 Remove Extra Metric 3 --- diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/PieChartWidget.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/PieChartWidget.java index 4c5943d6f24..b2dbcbfe3cc 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/PieChartWidget.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/PieChartWidget.java @@ -32,8 +32,7 @@ import static org.sonar.api.web.WidgetScope.GLOBAL; @WidgetProperty(key = "filter", type = WidgetPropertyType.FILTER, optional = false), @WidgetProperty(key = "mainMetric", type = WidgetPropertyType.METRIC, defaultValue = CoreMetrics.TECHNICAL_DEBT_KEY, options = {WidgetConstants.FILTER_OUT_NEW_METRICS}), @WidgetProperty(key = "extraMetric1", type = WidgetPropertyType.METRIC, defaultValue = CoreMetrics.NCLOC_KEY, options = {WidgetConstants.FILTER_OUT_NEW_METRICS}), - @WidgetProperty(key = "extraMetric2", type = WidgetPropertyType.METRIC, defaultValue = CoreMetrics.COMPLEXITY_KEY, options = {WidgetConstants.FILTER_OUT_NEW_METRICS}), - @WidgetProperty(key = "extraMetric3", type = WidgetPropertyType.METRIC, defaultValue = CoreMetrics.COVERAGE_KEY, options = {WidgetConstants.FILTER_OUT_NEW_METRICS}) + @WidgetProperty(key = "extraMetric2", type = WidgetPropertyType.METRIC, defaultValue = CoreMetrics.COMPLEXITY_KEY, options = {WidgetConstants.FILTER_OUT_NEW_METRICS}) }) public class PieChartWidget extends CoreWidget { diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties b/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties index 49b5eb0581f..114ccb7a9a5 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties @@ -1113,7 +1113,6 @@ widget.pie_chart.property.filter.name=Filter widget.pie_chart.property.mainMetric.name=Main Metric widget.pie_chart.property.extraMetric1.name=Extra Metric 1 widget.pie_chart.property.extraMetric2.name=Extra Metric 2 -widget.pie_chart.property.extraMetric3.name=Extra Metric 3 widget.cloud.name=Measure Filter as Word Cloud widget.cloud.description=Displays the result of a pre-configured measure filter as a word cloud. diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/pie_chart.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/pie_chart.html.erb index c0f2ae42206..04f414a5465 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/pie_chart.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/pie_chart.html.erb @@ -21,8 +21,7 @@ var metrics = [ '<%= widget_properties["mainMetric"].name %>', '<%= widget_properties["extraMetric1"].name %>', - '<%= widget_properties["extraMetric2"].name %>', - '<%= widget_properties["extraMetric3"].name %>' + '<%= widget_properties["extraMetric2"].name %>' ], query = [ 'filter=<%= filterId %>',