Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Aug 30, 2021. It is now read-only.

Commit ae2c45c

Browse files
committed
add more fields to request ids to fix cancelling when mulitple templated tags
1 parent e95973e commit ae2c45c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

datasource.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ function (angular, _, sdk, dateMath, kbn) {
3939

4040
// Called once per panel (graph)
4141
KairosDBDatasource.prototype.query = function (options) {
42+
self.panelId = options.panelId;
4243
var start = options.rangeRaw.from;
4344
var end = options.rangeRaw.to;
4445

@@ -97,7 +98,7 @@ function (angular, _, sdk, dateMath, kbn) {
9798
url: this.url + '/api/v1/metricnames?containing=' + metric,
9899
withCredentials: this.withCredentials,
99100
method: 'GET',
100-
requestId: "metricnames"
101+
requestId: self.panelId + ".metricnames"
101102
};
102103

103104
return this.backendSrv.datasourceRequest(options).then(function (response) {
@@ -177,7 +178,7 @@ function (angular, _, sdk, dateMath, kbn) {
177178
method: 'POST',
178179
withCredentials: this.withCredentials,
179180
url: this.url + '/api/v1/datapoints/query/tags',
180-
requestId: "metricKeyValueLookup",
181+
requestId: self.panelId + "." + metric + "." + key + "." + "metricKeyValueLookup",
181182
data: {
182183
metrics: [metricsOptions],
183184
cache_time: 0,

0 commit comments

Comments
 (0)