Преглед изворни кода

ixed influxdb issue with raw query that caused wrong value column detection (Fixes #504)

Torkel Ödegaard пре 11 година
родитељ
комит
551771c6cf
2 измењених фајлова са 2 додато и 1 уклоњено
  1. 1 0
      CHANGELOG.md
  2. 1 1
      src/app/services/influxdb/influxdbDatasource.js

+ 1 - 0
CHANGELOG.md

@@ -8,6 +8,7 @@ vNext
 - Fixes regex InfluxDB queries intoduced in 1.6.0 (PR #500)
 - Bug in when using % sign in legends (aliases), fixed by removing url decoding of metric names (Fixes #506)
 - Series names and column name typeahead cache fix (Fixes #522)
+- Fixed influxdb issue with raw query that caused wrong value column detection (Fixes #504)
 
 # 1.6.0 (2014-06-16)
 

+ 1 - 1
src/app/services/influxdb/influxdbDatasource.js

@@ -43,7 +43,7 @@ function (angular, _, kbn) {
           var groupByIndex = lowerCaseQueryElements.indexOf("group");
           var orderIndex = lowerCaseQueryElements.indexOf("order");
 
-          if (lowerCaseQueryElements[1].indexOf(',')) {
+          if (lowerCaseQueryElements[1].indexOf(',') !== -1) {
             groupByField = lowerCaseQueryElements[1].replace(',', '');
           }