You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"match anywhere" in Dag search UI should be persisted as URL param #73772
We have the ability to search for Dags by display-name/ ID. By default, the search looks at the start of the Dag_id, and we have the option to turn on "match anywhere", to search for a pattern anywhere in the name of the Dag.
However, this property is not persisted as a URL param. Therefor, when you share the filtered search results with a colleague, they do not see the same search results you see.
Adding a new match-anywhere=true URL param, when that feature is toggled on, would allow there shared search results to correctly take this capability into account.
Use case/motivation
This feature will allow a user to share the filtered Dag list they see when filtering the Dags and using match-anywhere, with anyone else, since this parameter would be persisted in the URL.
Hi @eitan-shalev , I'd be interested in working on this issue.
I can investigate how the current Dag search state and URL parameters are handled, then add persistence for the match-anywhere option while keeping the existing search behavior unchanged. I'll also add/update the relevant tests.
If it's still available, I'd be happy to work on it. Thanks!
Not really in scope for this issue, but does it even make sense to have an option to not search everywhere? I can't really think of a use-case where someone would want that behavior.
@jroachgolf84@eitan-shalev That is a great point! Making "match anywhere" the default behavior would definitely simplify the UI.
Should I proceed with the original plan to add the URL parameter, or would you prefer me to remove the toggle entirely and make "match anywhere" the permanent default behavior?
Let me know which direction to take, and I'll get started!
@jroachgolf84 - I saw your comment about potentially making "match anywhere" the permanent default and dropping the toggle entirely. While that might be a great UX simplification for the future, I figured it was safest to implement the exact scope of this issue first (URL persistence) rather than making a breaking UX change that might require broader consensus from the community.
Implementation Details:
To prevent polluting the global URL state for all search bars across the Airflow UI (like XComs, Task Instances, Events, etc.), I took a targeted approach.
I modified the useAdvancedSearch React hook to optionally accept a URL parameter key. By passing our new MATCH_ANYWHERE enum strictly to the DAGs list component, we preserve the default clean URL behavior for the rest of the application while explicitly solving the shareable deep-linking requirement for the DAGs list.
Let me know what you think of the approach in the PR!
Activity
kadubhumika commentedon Sep 27, 2026
Hi @eitan-shalev , I'd be interested in working on this issue.
I can investigate how the current Dag search state and URL parameters are handled, then add persistence for the
match-anywhereoption while keeping the existing search behavior unchanged. I'll also add/update the relevant tests.If it's still available, I'd be happy to work on it. Thanks!
eitan-shalev commentedon Sep 27, 2026
@kadubhumika Go for it!
kadubhumika commentedon Sep 27, 2026
yes sure!
jroachgolf84 commentedon Sep 28, 2026
Not really in scope for this issue, but does it even make sense to have an option to not search everywhere? I can't really think of a use-case where someone would want that behavior.
kadubhumika commentedon Sep 29, 2026
@jroachgolf84 @eitan-shalev That is a great point! Making "match anywhere" the default behavior would definitely simplify the UI.
Should I proceed with the original plan to add the URL parameter, or would you prefer me to remove the toggle entirely and make "match anywhere" the permanent default behavior?
Let me know which direction to take, and I'll get started!
jhaabhijeet864 commentedon Oct 1, 2026
Hi @kadubhumika, @jroachgolf84, and @eitan-shalev! I went ahead and implemented the URL persistence for this in PR #74014.
@jroachgolf84 - I saw your comment about potentially making "match anywhere" the permanent default and dropping the toggle entirely. While that might be a great UX simplification for the future, I figured it was safest to implement the exact scope of this issue first (URL persistence) rather than making a breaking UX change that might require broader consensus from the community.
Implementation Details:
To prevent polluting the global URL state for all search bars across the Airflow UI (like XComs, Task Instances, Events, etc.), I took a targeted approach.
I modified the
useAdvancedSearchReact hook to optionally accept a URL parameter key. By passing our newMATCH_ANYWHEREenum strictly to the DAGs list component, we preserve the default clean URL behavior for the rest of the application while explicitly solving the shareable deep-linking requirement for the DAGs list.Let me know what you think of the approach in the PR!
Persist the match-anywhere search toggle in the URL
Persist the match-anywhere search toggle in the URL (#74019)