You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "rusackas (via GitHub)" <gi...@apache.org> on 2026/09/12 18:31:26 UTC
[PR] docs(mcp): document restore_chart and restore_dashboard tools [superset]
rusackas opened a new pull request, #44207:
URL: https://github.com/apache/superset/pull/44207
### SUMMARY
#41842 added the `restore_chart` and `restore_dashboard` MCP tools but the "Using AI with Superset" tool reference table was never updated to list them, so they're missing from the docs right next to the `delete_chart`/`delete_dashboard` entries they pair with. This adds the two rows.
### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
N/A (docs-only table addition)
### TESTING INSTRUCTIONS
Render `docs/docs/using-superset/using-ai-with-superset.mdx` (or just read the diff) and confirm the Charts and Dashboards tool tables now include `restore_chart` and `restore_dashboard` alongside `delete_chart`/`delete_dashboard`.
### ADDITIONAL INFORMATION
- [ ] Has associated issue:
- [ ] Required feature flags:
- [ ] Changes UI
- [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351))
- [ ] Migration is atomic, supports rollback & is backwards-compatible
- [ ] Confirm DB migration upgrade and downgrade tested
- [ ] Runtime estimates and downtime expectations provided
- [ ] Introduces new feature or API
- [ ] Removes existing feature or API
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] docs(mcp): document restore_chart and restore_dashboard tools [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #44207:
URL: https://github.com/apache/superset/pull/44207#issuecomment-5647859724
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] docs(mcp): document restore_chart and restore_dashboard tools [superset]
Posted by "netlify[bot] (via GitHub)" <gi...@apache.org>.
netlify[bot] commented on PR #44207:
URL: https://github.com/apache/superset/pull/44207#issuecomment-5647869451
### <span aria-hidden="true">✅</span> Deploy Preview for *superset-docs-preview* ready!
| Name | Link |
|:-:|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 3e9223b4a56deec7598148bc14af614c7abc4a66 |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://app.netlify.com/projects/superset-docs-preview/deploys/6aa59a7e797a450007874b2d |
|<span aria-hidden="true">😎</span> Deploy Preview | [https://deploy-preview-44207--superset-docs-preview.netlify.app](https://deploy-preview-44207--superset-docs-preview.netlify.app) |
|<span aria-hidden="true">📱</span> Preview on mobile | <details><summary> Toggle QR Code... </summary><br /><br /><br /><br />_Use your smartphone camera to open QR code link._</details> |
|<span aria-hidden="true">🤖</span> Make changes | [Run an agent on this branch](https://app.netlify.com/projects/superset-docs-preview/agent-runs#FcwxDoMwDEDRu3jGakChBm7QY5jYFQMklpOlQr170-3rD-8G83JZgw1ggN05p6O3lFQf5hjHJU6YVaXi_-FbueGVDFkEXWsrrpgO9oacuyBqZ_m8pBtP5nllUlqJ4xxCoIXiPgl8fw) |
---
<!-- [superset-docs-preview Preview](https://deploy-preview-44207--superset-docs-preview.netlify.app) -->
_To edit notification comments on pull requests, go to your [Netlify project configuration](https://app.netlify.com/projects/superset-docs-preview/configuration/notifications#deploy-notifications)._
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] docs(mcp): document restore_chart and restore_dashboard tools [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on code in PR #44207:
URL: https://github.com/apache/superset/pull/44207#discussion_r4018227729
##########
docs/docs/using-superset/using-ai-with-superset.mdx:
##########
@@ -281,6 +281,7 @@ Ask your admin for the MCP server URL and any authentication tokens you need.
| `update_chart_preview` | Update a cached chart preview without saving |
| `generate_explore_link` | Generate an Explore URL for interactive visualization |
| `delete_chart` | Delete a chart by ID or UUID (soft-deletes to trash when `SOFT_DELETE` is enabled; fails if alerts/reports are still attached, checked before editorship; otherwise returns `permission_denied` if the caller isn't an editor of the chart — owners, Admins, and explicitly granted editors qualify) |
+| `restore_chart` | Restore a soft-deleted chart from trash by ID or UUID; not gated on `SOFT_DELETE`, so rows trashed while it was enabled stay recoverable, but only soft-deleted charts can be restored — permanently deleted charts are unrecoverable; returns `permission_denied` if the caller isn't an editor of the chart |
Review Comment:
Good catch, fixed. Both rows now say permission_denied only applies when the caller can see the object but isn't an editor, and NotFound covers the invisible case.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] docs(mcp): document restore_chart and restore_dashboard tools [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #44207:
URL: https://github.com/apache/superset/pull/44207#issuecomment-5687449260
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
<details>
<summary>
Bito Usage Guide
</summary>
**Commands**
Type the following command in the pull request comment and save the comment.
- `/review` - Manually triggers an incremental AI Review.
- `/review full` - Manually triggers a full AI Review.
- `/pause` - Pauses automatic reviews on this pull request.
- `/resume` - Resumes automatic reviews.
- `/resolve` - Marks all Bito-posted review comments as resolved.
- `/abort` - Cancels all in-progress reviews.
Refer to the <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/available-commands" target="_blank" rel="noopener noreferrer">documentation</a> for additional commands.
**Configuration**
This repository uses `Superset` You can customize the agent settings <a href="https://alpha.bito.ai/home/ai-agents/code-review-agent" target="_blank" rel="noopener noreferrer">here</a> or contact your Bito workspace admin at evan@preset.io.
**Documentation & Help**
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/getting-started/install-run-using-bito-cloud/create-or-customize-an-agent-instance" target="_blank" rel="noopener noreferrer">Customize agent settings</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/implementing-custom-code-review-rules" target="_blank" rel="noopener noreferrer">Review rules</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent" target="_blank" rel="noopener noreferrer">General documentation</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/faqs" target="_blank" rel="noopener noreferrer">FAQ</a>
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] docs(mcp): document restore_chart and restore_dashboard tools [superset]
Posted by "sadpandajoe (via GitHub)" <gi...@apache.org>.
sadpandajoe commented on code in PR #44207:
URL: https://github.com/apache/superset/pull/44207#discussion_r4014731476
##########
docs/docs/using-superset/using-ai-with-superset.mdx:
##########
@@ -281,6 +281,7 @@ Ask your admin for the MCP server URL and any authentication tokens you need.
| `update_chart_preview` | Update a cached chart preview without saving |
| `generate_explore_link` | Generate an Explore URL for interactive visualization |
| `delete_chart` | Delete a chart by ID or UUID (soft-deletes to trash when `SOFT_DELETE` is enabled; fails if alerts/reports are still attached, checked before editorship; otherwise returns `permission_denied` if the caller isn't an editor of the chart — owners, Admins, and explicitly granted editors qualify) |
+| `restore_chart` | Restore a soft-deleted chart from trash by ID or UUID; not gated on `SOFT_DELETE`, so rows trashed while it was enabled stay recoverable, but only soft-deleted charts can be restored — permanently deleted charts are unrecoverable; returns `permission_denied` if the caller isn't an editor of the chart |
Review Comment:
For objects outside the caller's RBAC visibility, both restore implementations intentionally return `NotFound` instead of `permission_denied`, so a client following these rows can misclassify a hidden but recoverable object as permanently deleted. Should these descriptions reserve `permission_denied` for visible non-editors and mention the `NotFound` case?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] docs(mcp): document restore_chart and restore_dashboard tools [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas merged PR #44207:
URL: https://github.com/apache/superset/pull/44207
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] docs(mcp): document restore_chart and restore_dashboard tools [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #44207:
URL: https://github.com/apache/superset/pull/44207#issuecomment-5678939122
<!-- Bito Reply -->
The current documentation for `restore_chart` and `restore_dashboard` states that they return `permission_denied` if the caller is not an editor. If the implementation actually returns `NotFound` for objects outside the caller's RBAC visibility, the documentation should be updated to accurately reflect this behavior. Reserving `permission_denied` for visible objects where the user lacks sufficient permissions and explicitly mentioning `NotFound` for objects that are hidden due to RBAC constraints would improve clarity for clients.
**docs/docs/using-superset/using-ai-with-superset.mdx**
```
| `restore_chart` | Restore a soft-deleted chart from trash by ID or UUID; ...; returns `permission_denied` if the caller isn't an editor of the chart |
| `restore_dashboard` | Restore a soft-deleted dashboard from trash by ID or UUID ...; returns `permission_denied` if the caller isn't an editor of the dashboard |
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org