diff options
author | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-01-31 14:04:17 +0100 |
---|---|---|
committer | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-01-31 14:04:25 +0100 |
commit | 03b97610bfc00f6cd59b4aa57ef440f7ad91424a (patch) | |
tree | f2c88fc852ff425a17d7b57066538eb216be25d6 /sonar-server | |
parent | 9f4a61ab12ec9449df444b0497a02568992cca99 (diff) | |
download | sonarqube-03b97610bfc00f6cd59b4aa57ef440f7ad91424a.tar.gz sonarqube-03b97610bfc00f6cd59b4aa57ef440f7ad91424a.zip |
SONAR-4962 Show new_* metrics only when includetrends=true
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/controllers/api/resources_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/api/resources_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/api/resources_controller.rb index 812e7cc81b9..bb0c02edf80 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/api/resources_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/api/resources_controller.rb @@ -428,7 +428,7 @@ class Api::ResourcesController < Api::ApiController if measures json_measures=[] json['msr']=json_measures - measures.each do |measure| + measures.select { |measure| !measure.metric.key.start_with?('new_') || include_trends }.each do |measure| json_measure={} json_measures<<json_measure json_measure[:key]=measure.metric.name |