Files
superset2/tests
Amin Ghadersohi 4a7282c6c1 fix(mcp): address code review findings for user and role MCP tools
- Add model_serializer to UserInfo and RoleInfo so select_columns
  context filtering is honored in list_users/list_roles output
  (matches pattern used by list_databases/list_dashboards)
- Apply model_dump(context={"select_columns": ...}) in list_users and
  list_roles, propagating column selection to nested Info serializers
- Move RoleDAO from mcp_service/role/dao.py to superset/daos/role.py
  to be consistent with all other DAO locations in the repo
- Update list_users privacy tests: email requires explicit select_columns
  request (not in default column set); roles unavailable in list context
  because USER_DIRECTORY_FIELDS filters it from DAO column selection
- Add select_columns output-filtering tests for both list_users and
  list_roles; fix role tool test patches to use new DAO module path

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-20 23:25:10 +00:00
..