mirror of
https://github.com/discourse/discourse.git
synced 2026-08-06 07:23:30 +08:00
Previously, Data Explorer opened every query in a fixed editor mode
("Generate with AI" whenever AI queries were enabled), so admins who
prefer writing SQL had to switch modes on every query they opened or
created.
This change stores the last used "Write SQL"/"Generate with AI" choice
in localStorage and applies it as the default when opening or creating
queries, following the same mechanism the plugin already uses to
remember the per-query results view.
Demo
https://github.com/user-attachments/assets/8bfc6e4d-efd8-4d87-be99-00198824ab7a
|
||
|---|---|---|
| .. | ||
| automation | ||
| fabricators | ||
| integration | ||
| jobs | ||
| lib | ||
| models | ||
| requests | ||
| system | ||
| tasks | ||
| data_explorer_spec.rb | ||
| guardian_spec.rb | ||
| report_generator_spec.rb | ||
| result_format_converter_spec.rb | ||
| result_to_markdown_spec.rb | ||