0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 00:54:21 +08:00
discourse/plugins/discourse-data-explorer
Krzysztof Kotlarek 7ccc75eca7
FEAT: Remember the last used editor mode in Data Explorer (#41765)
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
2026-07-17 10:16:11 +08:00
..
admin/assets/javascripts/admin DEV: Rename AdminFilterControls to DFilterControls (#41719) 2026-07-16 07:53:06 +10:00
app DEV: Add usage metrics for workflows, automations, and data explorer (#41437) 2026-07-13 11:41:58 +02:00
assets FEAT: Remember the last used editor mode in Data Explorer (#41765) 2026-07-17 10:16:11 +08:00
config I18N: Update translations (#41653) 2026-07-13 17:38:52 +02:00
db PERF: Improve user participation default query (#41676) 2026-07-13 16:15:05 -04:00
lib DEV: Make AI context compaction global (#41317) 2026-07-14 18:41:37 -03:00
spec FEAT: Remember the last used editor mode in Data Explorer (#41765) 2026-07-17 10:16:11 +08:00
test/javascripts DEV: Rename AdminFilterControls to DFilterControls (#41719) 2026-07-16 07:53:06 +10:00
package.json DEV: Add a script for generating external types in discourse-types (#37095) 2026-03-09 20:37:43 +01:00
plugin.rb DEV: Add usage metrics for workflows, automations, and data explorer (#41437) 2026-07-13 11:41:58 +02:00
README.md
tsconfig.json DEV: Add a script for generating external types in discourse-types (#37095) 2026-03-09 20:37:43 +01:00

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