Explore: Disable compact mode for ClickHouse plugin (#110869)

This commit is contained in:
Piotr Jamróz
2025-09-19 18:12:41 +02:00
committed by GitHub
parent c0ce4ff1f2
commit 316b5fe538
+13 -1
View File
@@ -312,7 +312,19 @@ export class Explore extends PureComponent<Props, ExploreState> {
*/
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 =