From 31f4eddbb6b57e04d454b57c0c5e93684fa0154e Mon Sep 17 00:00:00 2001 From: ismail simsek Date: Mon, 31 Jul 2023 21:38:46 +0300 Subject: [PATCH] InfluxDB: Fix fetching retention policies after manually entering a non-existent retention policy (#72564) Don't fetch tag keys before fetching policies --- .../editor/query/influxql/visual/VisualInfluxQLEditor.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/public/app/plugins/datasource/influxdb/components/editor/query/influxql/visual/VisualInfluxQLEditor.tsx b/public/app/plugins/datasource/influxdb/components/editor/query/influxql/visual/VisualInfluxQLEditor.tsx index 9ef1616cdbf..a3d423cf27c 100644 --- a/public/app/plugins/datasource/influxdb/components/editor/query/influxql/visual/VisualInfluxQLEditor.tsx +++ b/public/app/plugins/datasource/influxdb/components/editor/query/influxql/visual/VisualInfluxQLEditor.tsx @@ -133,12 +133,7 @@ export const VisualInfluxQLEditor = (props: Props): JSX.Element => { - withTemplateVariableOptions( - allTagKeys.then(() => getAllPolicies(datasource)), - wrapPure - ) - } + getPolicyOptions={() => withTemplateVariableOptions(getAllPolicies(datasource), wrapPure)} getMeasurementOptions={(filter) => withTemplateVariableOptions( allTagKeys.then((keys) =>