codeant-ai-for-open-source[bot] commented on PR #38402:
URL: https://github.com/apache/superset/pull/38402#issuecomment-4054187382

   ## **Sequence Diagram**
   
   This PR adds a new handlebars chart type to MCP chart generation. The flow 
now validates handlebars-specific fields early, parses the new schema, and maps 
either aggregate or raw query mode into Superset form data before chart 
creation.
   
   ```mermaid
   sequenceDiagram
       participant Client
       participant MCPValidator
       participant ChartSchema
       participant ChartMapper
       participant SupersetBackend
   
       Client->>MCPValidator: Send generate chart request with chart type 
handlebars
       MCPValidator->>MCPValidator: Pre validate template and query mode 
requirements
       MCPValidator->>ChartSchema: Validate request against 
HandlebarsChartConfig
       ChartSchema-->>MCPValidator: Return validated config
       MCPValidator->>ChartMapper: Map config to form data for handlebars viz 
type
       ChartMapper->>SupersetBackend: Create chart or explore payload
       SupersetBackend-->>Client: Return chart result or explore link
   ```
   
   ---
   *Generated by [CodeAnt AI](https://codeant.ai)*
   


-- 
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]

Reply via email to