mirror of
https://github.com/apache/superset.git
synced 2026-07-19 21:25:38 +00:00
- Drop the runtime-noop `cast(list[dict[str,Any]], ...)` wrapper around
`sanitize_for_llm_context` in `_filter_summary` and remove the now-
unused `cast` import.
- Wrap `json.loads` in `DashboardDAO.update_native_filters_config` with a
`(json.JSONDecodeError, TypeError)` guard so corrupt `json_metadata`
degrades to `{}` instead of crashing the write path with an unhandled
exception (mirrors the existing guard in `_current_native_filter_config`).
- Add `test_reorder_duplicate_filter_ids_rejected` to cover the duplicate-
ID check in `_build_native_filters_payload`, which was previously
exercised only by source inspection.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>