aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-04-11 11:30:19 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-04-11 11:30:19 +0200
commitccce926edf3633b98b1d2540e649ce9ad46cdd88 (patch)
treea7e28fb5d56fc189b474980848cb084f76f9ec25
parentdea783da892e576fe1a4b63f448a98df066fc06e (diff)
downloadsonarqube-ccce926edf3633b98b1d2540e649ce9ad46cdd88.tar.gz
sonarqube-ccce926edf3633b98b1d2540e649ce9ad46cdd88.zip
SONAR-3113 Add metric direction in the measure filter WS
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/controllers/measures_controller.rb3
1 files changed, 2 insertions, 1 deletions
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 f20128488f6..134c32398e7 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
@@ -294,7 +294,8 @@ class MeasuresController < ApplicationController
filter.metrics.each do |metric|
hash[:metrics][metric.key] = {
:name => metric.short_name,
- :type => metric.val_type
+ :type => metric.val_type,
+ :direction => metric.direction
}
hash[:metrics][metric.key][:worstValue] = metric.worst_value if metric.worst_value
hash[:metrics][metric.key][:bestValue] = metric.best_value if metric.best_value