codeant-ai-for-open-source[bot] commented on PR #38470:
URL: https://github.com/apache/superset/pull/38470#issuecomment-4031179895
## **Sequence Diagram**
This PR adds a configurable match type to the Select (Value) native filter
so creators can choose exact IN matching or partial ILIKE text matching, and
the runtime filter switches between a dropdown and a debounced text input to
generate the appropriate query filters.
```mermaid
sequenceDiagram
participant Creator
participant FiltersConfigModal
participant FilterConfigStore
participant Viewer
participant SelectFilter
participant FilterUtils
participant Backend
Creator->>FiltersConfigModal: Open filter configuration
FiltersConfigModal->>Creator: Show Match type dropdown
Creator->>FiltersConfigModal: Select match type (Exact or ILIKE)
FiltersConfigModal->>FilterConfigStore: Save operatorType in filter
control values
Viewer->>SelectFilter: Use filter on dashboard
SelectFilter->>FilterConfigStore: Read operatorType
alt Exact match
SelectFilter-->>Viewer: Render value dropdown
Viewer->>SelectFilter: Choose one or more values
SelectFilter->>FilterUtils: Build IN or NOT IN extra form data
else Partial text match
SelectFilter-->>Viewer: Render debounced text input
Viewer->>SelectFilter: Type search text
SelectFilter->>FilterUtils: Build ILIKE or NOT ILIKE extra form data
with wildcards
end
FilterUtils->>Backend: Apply filters in query
Backend-->>Viewer: Return filtered results
```
---
*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]