codeant-ai-for-open-source[bot] commented on PR #37107:
URL: https://github.com/apache/superset/pull/37107#issuecomment-3765875114
## **Sequence Diagram**
The PR migrates chart-related actions to TypeScript and consolidates the
chart data request flow. This diagram shows the core success-path: Explore
triggers a chart data request, the action builds and posts the payload, handles
the chart data response, updates chart state, and then triggers annotation
queries which are fetched separately.
```mermaid
sequenceDiagram
participant Explore as Explore UI
participant ChartActions as Chart Actions (postChartFormData /
exploreJSON)
participant Client as SupersetClient (HTTP)
participant Server as Chart Data API
participant Annotations as AnnotationQuery flow
Explore->>ChartActions: postChartFormData(formData)
ChartActions->>Client: POST /api/v1/chart/data (built payload)
Client-->>Server: HTTP request
Server-->>Client: 200 OK (chart data JSON)
Client-->>ChartActions: response + json
ChartActions->>ChartActions: handleChartDataResponse -> dispatch
CHART_UPDATE_SUCCEEDED
ChartActions-->>Explore: update chart state (queriesResponse, rendered)
ChartActions->>Annotations: for each annotation ->
runAnnotationQuery(...)
Annotations->>Client: POST annotation JSON payload
Client-->>Server: annotation request
Server-->>Client: 200 OK (annotation data)
Client-->>Annotations: annotation response
Annotations-->>ChartActions: dispatch ANNOTATION_QUERY_SUCCESS
```
---
*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]