mirror of
https://github.com/discourse/discourse.git
synced 2026-08-06 00:54:21 +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
|
||
|---|---|---|
| .. | ||
| admin/assets/javascripts/admin | ||
| app | ||
| assets | ||
| config | ||
| db | ||
| lib | ||
| spec | ||
| test/javascripts | ||
| package.json | ||
| plugin.rb | ||
| README.md | ||
| tsconfig.json | ||
Data Explorer Plugin
This plugin allows admins to run SQL queries against the live Discourse database, including parameterized queries and formatting for several common column types.
For more information, please see: https://meta.discourse.org/t/data-explorer-plugin/32566