From 001e5dfa8cf023561cde1f92c995adb7e7b46c65 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Thu, 19 Dec 2013 10:07:59 +0100 Subject: [PATCH] Add worst / best values params to measure filter WS --- .../main/webapp/WEB-INF/app/controllers/measures_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/measures_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/measures_controller.rb index d5f6fe32651..4bd51030e2c 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/measures_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/measures_controller.rb @@ -289,6 +289,8 @@ class MeasuresController < ApplicationController :name => metric.short_name, :type => metric.val_type } + hash[:metrics][metric.key][:worstValue] = metric.worst_value if metric.worst_value + hash[:metrics][metric.key][:bestValue] = metric.best_value if metric.best_value end hash[:components] = components_json -- 2.39.5