discourse/plugins/discourse-data-explorer/lib/discourse_data_explorer
Natalie Tay bcb0949a2f
FEATURE: AI-generated DE queries on /new before creation (#39412)
Redesigns the Data Explorer `/queries/new` page to be AI-first, with a
non-AI fallback if AI is disabled.
 
Instead of the old dual-form layout (manual create + separate AI
generate that redirects to the edit page), the new page lets you
describe what you want, generates the SQL inline, and saves when you're
ready.

Reviewer notes:
- there's no database record created until user clicks "Save query"
- new POST /queries/generate endpoint for query generation, no DB record
- agent rework - related PR
https://github.com/discourse/discourse-ai-evals/pull/16
  - switched to agentic execution mode
  - removed ValidateSql tool (redundant with RunSql)
  - added full Data Explorer parameter type reference
  - evaluator for the DE agent
2026-04-22 13:50:26 +08:00
..
tools FEATURE: AI-generated DE queries on /new before creation (#39412) 2026-04-22 13:50:26 +08:00
ai_agent_enumerator.rb DEV: Add the ability to register an AI module for data explorer (#38891) 2026-04-03 13:59:06 +08:00
ai_query_enqueuer.rb FEATURE: AI-generated DE queries on /new before creation (#39412) 2026-04-22 13:50:26 +08:00
ai_query_generator.rb FEATURE: AI-generated DE queries on /new before creation (#39412) 2026-04-22 13:50:26 +08:00
data_explorer.rb UX: Apply new admin plugin show route and UI to Data Explorer (#37910) 2026-02-23 11:38:16 +10:00
engine.rb
parameter.rb FEATURE: Add current_user_id parameter type to Data Explorer (#36655) 2025-12-12 16:40:14 +01:00
queries.rb
query_creator.rb FEATURE: AI-generated DE queries on /new before creation (#39412) 2026-04-22 13:50:26 +08:00
query_group_bookmarkable.rb SECURITY: Ensure guardian check when creating QueryGroupBookmark 2026-02-26 12:22:54 +00:00
query_result_cache.rb FEATURE: Cache data explorer responses by query and param for quick results (#39118) 2026-04-07 11:57:33 +08:00
query_result_downloader.rb FEATURE: Cache data explorer responses by query and param for quick results (#39118) 2026-04-07 11:57:33 +08:00
query_runner.rb FEATURE: Cache data explorer responses by query and param for quick results (#39118) 2026-04-07 11:57:33 +08:00
report_generator.rb
result_format_converter.rb
result_to_markdown.rb
validation_error.rb