diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-06-08 13:29:53 +0300 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-06-08 13:29:53 +0300 |
commit | f78fd3de5d55830c84f25cfd50d399e7ddaddf30 (patch) | |
tree | c03894b057000cc183a8e0b6b38642cc7325a00d /lib/gitlab/prometheus/queries | |
parent | 6eb96b2019d392d906a64108dbe83b3ce7cce758 (diff) |
Fix Additional metrics filtering
+ remove test button that was leftover after a bad merge
Diffstat (limited to 'lib/gitlab/prometheus/queries')
-rw-r--r-- | lib/gitlab/prometheus/queries/query_additional_metrics.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/prometheus/queries/query_additional_metrics.rb b/lib/gitlab/prometheus/queries/query_additional_metrics.rb index dd888b2bc1d..a5a401f84cd 100644 --- a/lib/gitlab/prometheus/queries/query_additional_metrics.rb +++ b/lib/gitlab/prometheus/queries/query_additional_metrics.rb @@ -37,7 +37,7 @@ module Gitlab def query_with_result(query) query[:result]&.any? do |item| - item&.[](:values)&.any? || item&.[](:value)&.any? + item&.[]('values')&.any? || item&.[]('value')&.any? end end |