codeant-ai-for-open-source[bot] commented on code in PR #40959:
URL: https://github.com/apache/superset/pull/40959#discussion_r3493693856
##########
superset/mcp_service/dashboard/schemas.py:
##########
@@ -914,6 +914,138 @@ class GenerateDashboardResponse(BaseModel):
)
+class DuplicateDashboardRequest(BaseModel):
+ """Request schema for duplicating an existing dashboard."""
+
+ model_config = ConfigDict(populate_by_name=True)
+
+ dashboard_id: Annotated[
+ int | str,
+ Field(
+ description=(
+ "Source dashboard identifier - can be numeric ID, UUID string,
or slug"
+ )
+ ),
+ ]
Review Comment:
✅ **Customized review instruction saved!**
**Instruction:**
> For MCP request schemas, keep identifier fields aligned with the backing
DAO/API capabilities; do not force UUID-only validation when existing code
paths intentionally accept numeric IDs, UUIDs, and slugs.
**Applied to:**
- `superset/mcp_service/**`
---
💡 *To manage or update this instruction, visit: [CodeAnt AI
Settings](https://app.codeant.ai/org/settings/learnings)*
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]