Skip to content

need save state between SQL Editor / Query Settings modes on dashboard reload  #835

@frank-lam

Description

@frank-lam

Title:
SQL Editor mode is lost on dashboard reload (Altinity ClickHouse plugin)

Description:
When we edit a panel that uses the Altinity plugin for ClickHouse and switch to “SQL Editor” mode, the query works as expected and we save the dashboard.
However, after refreshing the page and re-opening the panel, the UI always defaults back to the “Query Settings” tab instead of remembering that the panel was last saved in “SQL Editor” mode.
With many queries this forces us to manually switch every single panel again, which is painful.

Steps to reproduce:

  1. Create a new panel, choose the Altinity/ClickHouse data-source.
  2. Click “SQL Editor”, write any query, save the dashboard.
  3. Reload the browser tab.
  4. Edit the same panel → it opens on “Query Settings” instead of the previously active “SQL Editor”.

Expected behaviour:
The plugin should persist the active query-mode (SQL Editor vs. Query Builder) in the panel JSON and restore it when the panel is re-opened.

Environment:

  • Grafana 12.x
  • Altinity plugin for ClickHouse (latest 3.4.8)

Thank you!

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions