Explorar el Código

Merge branch 'influxdb_stop_hidden_queries'

bergquist hace 9 años
padre
commit
07e522bb64

+ 2 - 2
CHANGELOG.md

@@ -23,8 +23,8 @@
 * **InfluxDB**: Add spread function, closes [#5211](https://github.com/grafana/grafana/issues/5211)
 * **InfluxDB**: Add spread function, closes [#5211](https://github.com/grafana/grafana/issues/5211)
 * **Scripts**: Use restart instead of start for deb package script, closes [#5282](https://github.com/grafana/grafana/pull/5282)
 * **Scripts**: Use restart instead of start for deb package script, closes [#5282](https://github.com/grafana/grafana/pull/5282)
 * **Logging**: Moved to structured logging lib, and moved to component specific level filters via config file, closes [#4590](https://github.com/grafana/grafana/issues/4590)
 * **Logging**: Moved to structured logging lib, and moved to component specific level filters via config file, closes [#4590](https://github.com/grafana/grafana/issues/4590)
-* **OpenTSDB**: Support nested template variables in tag_values function, closes [4398](https://github.com/grafana/grafana/issues/4398)
-* **Datasource**: Pending data source requests are cancelled before new ones are issues (Graphite & Prometheus), closes [5321](https://github.com/grafana/grafana/issues/5321)
+* **OpenTSDB**: Support nested template variables in tag_values function, closes [#4398](https://github.com/grafana/grafana/issues/4398)
+* **Datasource**: Pending data source requests are cancelled before new ones are issues (Graphite & Prometheus), closes [#5321](https://github.com/grafana/grafana/issues/5321)
 
 
 ### Breaking changes
 ### Breaking changes
 * **Logging** : Changed default logging output format (now structured into message, and key value pairs, with logger key acting as component). You can also no change in config to json log ouput.
 * **Logging** : Changed default logging output format (now structured into message, and key value pairs, with logger key acting as component). You can also no change in config to json log ouput.

+ 2 - 0
public/app/plugins/datasource/influxdb/datasource.ts

@@ -134,6 +134,8 @@ export default class InfluxDatasource {
   };
   };
 
 
   _seriesQuery(query) {
   _seriesQuery(query) {
+    if (!query) { return this.$q.when({results: []}); }
+
     return this._influxRequest('GET', '/query', {q: query, epoch: 'ms'});
     return this._influxRequest('GET', '/query', {q: query, epoch: 'ms'});
   }
   }
 
 

+ 1 - 1
public/sass/_variables.light.scss

@@ -60,7 +60,7 @@ $page-bg:  		  		    $white;
 $body-color:    		    $gray-1;
 $body-color:    		    $gray-1;
 $text-color:    		    $gray-1;
 $text-color:    		    $gray-1;
 $text-color-strong:	    $white;
 $text-color-strong:	    $white;
-$text-color-weak: 	    $gray-1;
+$text-color-weak: 	    $gray-2;
 $text-color-faint:      $gray-3;
 $text-color-faint:      $gray-3;
 $text-color-emphasis: 	$dark-5;
 $text-color-emphasis: 	$dark-5;