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

   ## **Sequence Diagram**
   
   This PR introduces a new embeddable chart flow that creates ephemeral chart 
permalinks and issues guest tokens scoped to that permalink. The diagram shows 
how UI or MCP requests produce embed credentials and how the embedded page 
securely loads and renders the chart.
   
   ```mermaid
   sequenceDiagram
       participant Client
       participant SupersetAPI
       participant PermalinkStore
       participant TokenService
       participant EmbeddedPage
   
       Client->>SupersetAPI: Request embeddable chart with form data
       SupersetAPI->>PermalinkStore: Store chart state as permalink with ttl
       SupersetAPI->>TokenService: Create guest token for chart permalink
       SupersetAPI-->>Client: Return iframe url and guest token
       Client->>EmbeddedPage: Load iframe and send guest token
       EmbeddedPage->>SupersetAPI: Request permalink state for rendering
       SupersetAPI->>SupersetAPI: Validate token includes chart permalink access
       SupersetAPI-->>EmbeddedPage: Return chart state
       EmbeddedPage->>EmbeddedPage: Render chart from permalink form 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