From 316b5fe53872c2e7a325adb20b0b91e3b1d99582 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Jamr=C3=B3z?= Date: Fri, 19 Sep 2025 18:12:41 +0200 Subject: [PATCH] Explore: Disable compact mode for ClickHouse plugin (#110869) --- public/app/features/explore/Explore.tsx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/public/app/features/explore/Explore.tsx b/public/app/features/explore/Explore.tsx index a895750bb59..f9660d5833a 100644 --- a/public/app/features/explore/Explore.tsx +++ b/public/app/features/explore/Explore.tsx @@ -312,7 +312,19 @@ export class Explore extends PureComponent { */ onSplitOpen = (panelType: string) => { return async (options?: SplitOpenOptions) => { - this.props.splitOpen(options ? { ...options, compact: true } : options); + let compact = true; + + /** + * Temporary fix grafana-clickhouse-datasource as it requires the query editor to be fully rendered to update the query + * Proposed fixes: + * - https://github.com/grafana/clickhouse-datasource/issues/1363 - handle query update in data source + * - https://github.com/grafana/grafana/issues/110868 - allow data links to provide meta info if the link can be handled in compact mode (default to false) + */ + if (options?.queries?.some((q) => q.datasource?.type === 'grafana-clickhouse-datasource')) { + compact = false; + } + + this.props.splitOpen(options ? { ...options, compact } : options); if (options && this.props.datasourceInstance) { const target = (await getDataSourceSrv().get(options.datasourceUid)).type; const source =