From 4e5f61e07988472551d099d8f124d1e7dd8faee0 Mon Sep 17 00:00:00 2001 From: Jakub Wroblewski Date: Thu, 11 Jun 2020 13:57:38 +0200 Subject: [PATCH] Adjust humanizeVariable to grafana 7 data format --- dist/datasource.js | 8 ++++++-- dist/datasource.js.map | 2 +- dist/datasource.ts | 11 ++++++++--- src/datasource.ts | 11 ++++++++--- 4 files changed, 23 insertions(+), 9 deletions(-) diff --git a/dist/datasource.js b/dist/datasource.js index 6bfde06..32d7deb 100644 --- a/dist/datasource.js +++ b/dist/datasource.js @@ -311,9 +311,13 @@ System.register(["lodash", "angular", "./utils/parseDuration"], function (export return id; if (config && config.mapValues && config.mapValues.varMap[varName]) varName = config.mapValues.varMap[varName]; - if (!datasource.templateSrv.index[varName]) + var templateVar = datasource.templateSrv.index[varName] || datasource.templateSrv.getVariables().find(function (e) { return e.name == varName; }); + if (!templateVar) return id; - return (datasource.templateSrv.index[varName].options.find(function (e) { return e.value == id; }) || {}).text || id; + var templateOpt = templateVar.options.find(function (e) { return e.value.split(",").includes(id); }); + if (!templateOpt) + return id; + return templateOpt.text; } }; return MixTransformDatasource; diff --git a/dist/datasource.js.map b/dist/datasource.js.map index 9a816bf..63c27b6 100644 --- a/dist/datasource.js.map +++ b/dist/datasource.js.map @@ -1 +1 @@ -{"version":3,"file":"datasource.js","sourceRoot":"","sources":["datasource.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;gBAiBI,gCAAY,gBAAgB,EAAE,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa;oBAJxE,iBAAY,GAAQ,EAAE,CAAC;oBACvB,sBAAiB,GAAQ,EAAE,CAAC;oBAIxB,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;oBACzC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,IAAI,EAAE,CAAC;oBACtE,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;oBAC7B,IAAI,CAA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K,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,EAA/B,CAA+B,CAAC,CAAC;wBACjF,IAAI,CAAC,WAAW;4BAAE,OAAO,EAAE,CAAC;wBAE5B,OAAO,WAAW,CAAC,IAAI,CAAC;oBAC5B,CAAC;iBACJ,CAAC;gBAEN,6BAAC;aAAA,AAxUD;iCAAqB,sBAAsB;QAyU3C,CAAC"} \ No newline at end of file diff --git a/dist/datasource.ts b/dist/datasource.ts index d90859c..05eebcc 100644 --- a/dist/datasource.ts +++ b/dist/datasource.ts @@ -322,9 +322,14 @@ export default class MixTransformDatasource { humanizeVariable(datasource, varName, config, id) { if (!varName || !datasource || !datasource.templateSrv) return id; if (config && config.mapValues && config.mapValues.varMap[varName]) varName = config.mapValues.varMap[varName]; - if (!datasource.templateSrv.index[varName]) return id; - // == is intentional! - return (datasource.templateSrv.index[varName].options.find(e => e.value == id) || {}).text || id; + + var templateVar = datasource.templateSrv.index[varName] || datasource.templateSrv.getVariables().find(e => e.name == varName); + if (!templateVar) return id; + + var templateOpt = templateVar.options.find(e => e.value.split(",").includes(id)); + if (!templateOpt) return id; + + return templateOpt.text; } }; diff --git a/src/datasource.ts b/src/datasource.ts index d90859c..05eebcc 100644 --- a/src/datasource.ts +++ b/src/datasource.ts @@ -322,9 +322,14 @@ export default class MixTransformDatasource { humanizeVariable(datasource, varName, config, id) { if (!varName || !datasource || !datasource.templateSrv) return id; if (config && config.mapValues && config.mapValues.varMap[varName]) varName = config.mapValues.varMap[varName]; - if (!datasource.templateSrv.index[varName]) return id; - // == is intentional! - return (datasource.templateSrv.index[varName].options.find(e => e.value == id) || {}).text || id; + + var templateVar = datasource.templateSrv.index[varName] || datasource.templateSrv.getVariables().find(e => e.name == varName); + if (!templateVar) return id; + + var templateOpt = templateVar.options.find(e => e.value.split(",").includes(id)); + if (!templateOpt) return id; + + return templateOpt.text; } };