mirror of
https://github.com/apache/superset.git
synced 2026-06-01 13:49:21 +00:00
LLMs consistently passed flat kwargs (search, page, page_size) to list_*
tools instead of wrapping them in the required `request` object, causing
pydantic validation errors.
- Add docstring usage examples to list_datasets, list_charts, and
list_dashboards showing the correct `request={...}` call shape and
explicitly warning against flat kwargs
- Enumerate valid filter columns directly in DatasetFilter, ChartFilter,
and DashboardFilter field descriptions (e.g. `created_by_fk` is not a
valid dataset filter col)
- Add TestListDatasetsRequestWrapper tests covering: correct request
wrapper usage, default values, valid/invalid filter col validation,
and the flat-kwargs rejection scenario from story #105712
- Allow E501 in list_*.py tool files (docstring examples need full request
shapes to be instructive)
15 KiB
15 KiB