Provide tooling for admins to manage data sources whose query runner is unavailable
Author: arikfrCreated Sep 27, 2026Updated Sep 27, 2026
When a data source's type has no registered query runner (a removed runner such as Rockset or Universal Analytics in #7826, a runner turned off via REDASH_DISABLED_QUERY_RUNNERS, or one whose dependencies aren't installed), admins can no longer see or manage that data source:
GET /api/data_sourcesskips it.DataSource.to_dict()raisesAttributeErroronself.query_runner.syntax, andDataSourceListResourcecatches that and leaves the source out of the list.GET /api/data_sources/<id>returns a 500 for the same reason, and so do pause, resume and edit.DELETE /api/data_sources/<id>still works, but you have to know the ID and call the API directly.
The records, and the queries, dashboards and scheduled refreshes that depend on them, end up orphaned, and the UI gives no way to find or clean them up.
Possible approach
- Make
DataSource.to_dict()work when the runner is missing, e.g. return the basic fields plus anunsupported: trueflag (or similar) instead of raising. - Show these sources in the admin data source list, marked as unsupported, with a fallback logo.
- Let admins view and delete them (and maybe pause them), and disable editing the options, since there's no configuration schema.
- Optionally, warn at startup or in the admin UI about data sources whose type isn't available.
Context: https://github.com/getredash/redash/pull/7826#discussion_r4101448786
Source: getredash/redash