Explorar o código

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

Torkel Ödegaard %!s(int64=11) %!d(string=hai) anos
pai
achega
551771c6cf
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  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(',', '');
           }