codeant-ai-for-open-source[bot] commented on PR #36831:
URL: https://github.com/apache/superset/pull/36831#issuecomment-3690286588
## **Sequence Diagram**
Shows the change where ChartCreation uses an exact (eq) API filter when a
dataset is provided via the URL, while keeping the contains (ct) operator for
interactive dropdown searches. This ensures the correct dataset is selected on
page load.
```mermaid
sequenceDiagram
participant Browser
participant ChartCreation (frontend)
participant Dataset API
Browser->>ChartCreation (frontend): GET /chart/add?dataset=flights (page
load)
ChartCreation (frontend)->>Dataset API: GET /api/v1/dataset?q=...
filters: table_name opr:eq "flights"
Dataset API-->>ChartCreation (frontend): 200 OK (matching dataset)
ChartCreation (frontend)-->>Browser: set datasource & show success toast
Browser->>ChartCreation (frontend): User opens Dataset dropdown and
types "test"
ChartCreation (frontend)->>Dataset API: GET /api/v1/dataset?q=...
filters: table_name opr:ct "test"
Dataset API-->>ChartCreation (frontend): 200 OK (search results)
ChartCreation (frontend)-->>Browser: show dropdown matches
```
---
*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]