Files
superset2/tests/unit_tests
Amin Ghadersohi 95b9efe1a3 fix(mcp): prevent ValueError when select_columns contains only USER_DIRECTORY_FIELDS in list_rls_filters
When the caller passes select_columns that consists entirely of USER_DIRECTORY_FIELDS
columns (e.g. ["roles"]), ModelListCore raises ValueError because its privacy filter
strips all columns, leaving an empty list.

Strip USER_DIRECTORY_FIELDS from select_columns before passing to run_tool (falling
back to None/defaults when the filtered list is empty). The existing bypass mechanism
already restores these fields in the final serialized output using ALL_RLS_COLUMNS.

Adds a regression test for the ["roles"]-only select_columns edge case.
2026-05-27 18:33:25 +00:00
..
2024-05-29 19:04:37 -07:00
2024-05-29 19:04:37 -07:00
2025-09-12 09:21:37 +01:00