From: David Gageot Date: Wed, 10 Oct 2012 08:13:04 +0000 (+0200) Subject: SONAR-2804 Fix metrics category names and order X-Git-Tag: 3.3~54 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=73969e0c309b4bf5f9adb7b6c3b4e5e7becd97e5;p=sonarqube.git SONAR-2804 Fix metrics category names and order --- diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java b/sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java index fd65fb460a0..1017eb48f05 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java @@ -39,8 +39,8 @@ public final class CoreMetrics { public static final String DOMAIN_SIZE = "Size"; public static final String DOMAIN_TESTS = "Tests"; - public static final String DOMAIN_INTEGRATION_TESTS = "Integration Tests"; - public static final String DOMAIN_OVERALL_TESTS = "All Tests"; + public static final String DOMAIN_INTEGRATION_TESTS = "Tests (Integration)"; + public static final String DOMAIN_OVERALL_TESTS = "Tests (Overall)"; public static final String DOMAIN_COMPLEXITY = "Complexity"; public static final String DOMAIN_DOCUMENTATION = "Documentation"; public static final String DOMAIN_RULES = "Rules"; diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb index 11b71dc084c..6a78bb2c828 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb @@ -184,8 +184,8 @@ class ResourceController < ApplicationController @coverage_filter = (metric ? metric.key : 'coverage') it_prefix = '' - it_prefix = 'it_' if @coverage_filter.start_with?('it_') - it_prefix = 'overall_' if @coverage_filter.start_with?('overall_') + it_prefix = 'it_' if (@coverage_filter.start_with?('it_') || @coverage_filter.start_with?('new_it_')) + it_prefix = 'overall_' if (@coverage_filter.start_with?('overall_') || @coverage_filter.start_with?('new_overall_')) @hits_by_line = load_distribution("#{it_prefix}coverage_line_hits_data") @conditions_by_line = load_distribution("#{it_prefix}conditions_by_line") diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_options.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_options.html.erb index 8da520a23c2..34d774f440c 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_options.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_options.html.erb @@ -67,14 +67,6 @@ <% if @display_coverage %> <% first=false