Commit 9fe80bb
committed
fix(mcp): address review feedback on remove_chart_from_dashboard
- Fix ruff E501: shorten _call_remove docstring to ≤88 chars
- Add remove_chart_from_dashboard to FieldPermissionsMiddleware
TOOL_OBJECT_TYPE_MAP (was missing, unlike add_chart_to_existing_dashboard)
- Add remove_chart_from_dashboard to tool-search-optimization.md mutate
tools list for documentation consistency
- Add created_on/changed_on to the re-fetch-fallback DashboardInfo path
so its shape matches the successful re-fetch path
- Add removed_layout_keys=[] and permission_denied=False to the exception
handler response for a consistent schema across all code paths1 parent 4b889c5 commit 9fe80bb
4 files changed
Lines changed: 7 additions & 2 deletions
File tree
- superset/mcp_service
- dashboard/tool
- docs
- tests/unit_tests/mcp_service/dashboard/tool
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
| 369 | + | |
| 370 | + | |
369 | 371 | | |
370 | 372 | | |
371 | 373 | | |
| |||
439 | 441 | | |
440 | 442 | | |
441 | 443 | | |
| 444 | + | |
| 445 | + | |
442 | 446 | | |
443 | 447 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1056 | 1056 | | |
1057 | 1057 | | |
1058 | 1058 | | |
| 1059 | + | |
1059 | 1060 | | |
1060 | 1061 | | |
1061 | 1062 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
| 259 | + | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| |||
0 commit comments