From d858c59c85ccca793dff614f1ad943fc6d6aad05 Mon Sep 17 00:00:00 2001 From: ismail simsek Date: Mon, 31 Jul 2023 22:01:04 +0300 Subject: [PATCH] [v10.0.x] InfluxDB: Fix fetching retention policies after manually entering a non-existent retention policy (#72641) InfluxDB: Fix fetching retention policies after manually entering a non-existent retention policy (#72564) Don't fetch tag keys before fetching policies (cherry picked from commit 31f4eddbb6b57e04d454b57c0c5e93684fa0154e) --- .../influxdb/components/VisualInfluxQLEditor/Editor.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/public/app/plugins/datasource/influxdb/components/VisualInfluxQLEditor/Editor.tsx b/public/app/plugins/datasource/influxdb/components/VisualInfluxQLEditor/Editor.tsx index 27477576254..93b476106be 100644 --- a/public/app/plugins/datasource/influxdb/components/VisualInfluxQLEditor/Editor.tsx +++ b/public/app/plugins/datasource/influxdb/components/VisualInfluxQLEditor/Editor.tsx @@ -161,12 +161,7 @@ export const Editor = (props: Props): JSX.Element => { - withTemplateVariableOptions( - allTagKeys.then((keys) => getAllPolicies(datasource)), - wrapPure - ) - } + getPolicyOptions={() => withTemplateVariableOptions(getAllPolicies(datasource), wrapPure)} getMeasurementOptions={(filter) => withTemplateVariableOptions( allTagKeys.then((keys) =>