]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3113 Add metric direction in the measure filter WS
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 11 Apr 2014 09:30:19 +0000 (11:30 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 11 Apr 2014 09:30:19 +0000 (11:30 +0200)
sonar-server/src/main/webapp/WEB-INF/app/controllers/measures_controller.rb

index f20128488f623c10fccd493e3bfdba140cb32778..134c32398e74c0e7edd14fd930f42ef94a61fb5a 100644 (file)
@@ -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