From acdb0e151c9a2abd6e691353de6cc515d316ee76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Farkas?= Date: Mon, 7 Jul 2025 08:58:48 +0200 Subject: [PATCH] datasources: remove empty if (#105314) --- packages/grafana-runtime/src/utils/DataSourceWithBackend.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts b/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts index ff95bc1c1e6..ca7bc045f9c 100644 --- a/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts +++ b/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts @@ -226,9 +226,6 @@ class DataSourceWithBackend< if (!(config.featureToggles.queryService || config.featureToggles.grafanaAPIServerWithExperimentalAPIs)) { console.warn('feature toggle queryServiceFromUI also requires the queryService to be running'); } else { - if (!hasExpr && dsUIDs.size === 1) { - // TODO? can we talk directly to the apiserver? - } url = `/apis/query.grafana.app/v0alpha1/namespaces/${config.namespace}/query?ds_type=${this.type}`; } }