Files
superset2/tests
Amin Ghadersohi 582ebf891c fix(mcp): remove dead cast, guard DAO json.loads, add reorder-dupe test
- 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>
2026-06-29 17:32:13 +00:00
..