Commit 44f0c749 by Torkel Ödegaard

Fix for InfluxDB temp dashboards, seperate series name prefix so they do not…

Fix for InfluxDB temp dashboards, seperate series name prefix so they do not show up in dashboard search, #633
parent 082d2c73
...@@ -259,7 +259,7 @@ function (angular, _, kbn, InfluxSeries) { ...@@ -259,7 +259,7 @@ function (angular, _, kbn, InfluxSeries) {
}; };
InfluxDatasource.prototype._saveDashboardTemp = function(data, title) { InfluxDatasource.prototype._saveDashboardTemp = function(data, title) {
data[0].name = 'grafana.dashboard_temp_' + btoa(title); data[0].name = 'grafana.temp_dashboard_' + btoa(title);
data[0].columns.push('expires'); data[0].columns.push('expires');
data[0].points[0].push(this._getTempDashboardExpiresDate()); data[0].points[0].push(this._getTempDashboardExpiresDate());
...@@ -296,7 +296,7 @@ function (angular, _, kbn, InfluxSeries) { ...@@ -296,7 +296,7 @@ function (angular, _, kbn, InfluxSeries) {
var queryString = 'select dashboard from "grafana.dashboard_' + btoa(id) + '"'; var queryString = 'select dashboard from "grafana.dashboard_' + btoa(id) + '"';
if (isTemp) { if (isTemp) {
queryString = 'select dashboard from "grafana.dashboard_temp_' + btoa(id) + '"'; queryString = 'select dashboard from "grafana.temp_dashboard_' + btoa(id) + '"';
} }
return this._seriesQuery(queryString).then(function(results) { return this._seriesQuery(queryString).then(function(results) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment