codeant-ai-for-open-source[bot] commented on PR #38054:
URL: https://github.com/apache/superset/pull/38054#issuecomment-3923319270
## **Sequence Diagram**
Shows how the modal seeds Select options from saved report data to display
friendly native-filter names immediately, and how the dashboard tabs API later
overwrites those options when it responds.
```mermaid
sequenceDiagram
participant User
participant AlertReportModal
participant ResourceAPI as "Report Resource"
participant DashboardAPI as "Dashboard /tabs API"
participant SelectComponent as "Filter Select"
User->>AlertReportModal: Open report edit modal (edit existing report)
AlertReportModal->>ResourceAPI: Load saved report resource
ResourceAPI-->>AlertReportModal: Saved nativeFilters (id + filterName)
AlertReportModal->>AlertReportModal: setNativeFilterData & seed
nativeFilterOptions from saved filterName
AlertReportModal->>SelectComponent: Render with value=nativeFilterId and
seeded options (friendly labels)
SelectComponent-->>User: Displays friendly filter name (e.g., "Country")
Note right of DashboardAPI: async tabs metadata request in parallel
DashboardAPI-->>AlertReportModal: Tabs response (full native_filters
list)
AlertReportModal->>SelectComponent: Overwrite nativeFilterOptions with
full tabs metadata
SelectComponent-->>User: Updates displayed filter label if changed
(final authoritative label)
```
---
*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]