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

   ## **Sequence Diagram**
   
   This PR lets MCP callers pass extra form data (such as dashboard native 
filters) into the get_chart_data tool so that chart queries are built with 
merged filters across all query-building paths.
   
   ```mermaid
   sequenceDiagram
       participant MCPClient
       participant MCPService
       participant SupersetCore
       participant Database
   
       MCPClient->>MCPService: Call get_chart_data with extra_form_data
       MCPService->>MCPService: Load chart and base form_data or query_context
       MCPService->>MCPService: Apply extra_form_data and merge extra filters
       MCPService->>SupersetCore: Build query context with merged filters
       SupersetCore->>Database: Execute chart query
       Database-->>SupersetCore: Filtered chart rows
       SupersetCore-->>MCPService: Query result
       MCPService-->>MCPClient: Return filtered chart data
   ```
   
   ---
   *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