From 5064290988bda7cb5df96bbb2aa01005949f2d80 Mon Sep 17 00:00:00 2001 From: Benedikt Seidl Date: Wed, 26 Nov 2025 14:11:40 +0100 Subject: [PATCH] cleanup old code --- src/types.ts | 2 +- src/ui/QueryEditor.tsx | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/types.ts b/src/types.ts index 52e3944c..357a521c 100644 --- a/src/types.ts +++ b/src/types.ts @@ -60,7 +60,7 @@ export const defaultQuery: Partial = { }; export type Edition = 'CEE' | 'RAW'; -export type Backend = 'web' | 'rest'; +export type Backend = 'rest'; export interface DataSourceOptions extends DataSourceJsonData { url?: string; diff --git a/src/ui/QueryEditor.tsx b/src/ui/QueryEditor.tsx index 57151ead..b12c0286 100644 --- a/src/ui/QueryEditor.tsx +++ b/src/ui/QueryEditor.tsx @@ -76,11 +76,7 @@ export const QueryEditor = (props: Props): React.JSX.Element => { let params = {}; if (datasource.getEdition() === 'RAW') { ident = qGraphType === 'single_metric' ? 'monitored_metrics' : 'available_graphs'; - params = { strict: 'with_source' }; - // 2.1.0 changed { strict: 'with_source' } to: - // strict: true, - // show_independent_of_context: false, - // but the defaults for missing values seem to be in our favour. + params = { strict: true, show_independent_of_context: false }; } else { ident = 'combined_graphs'; params = {