Skip to content

"match anywhere" in Dag search UI should be persisted as URL param #73772

Closed

Description

@eitan-shalev

Description

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.

Image

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.

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    kind:feature
    needs-triage
    on Sep 27, 2026
  2. kadubhumika commented on Sep 27, 2026

    @kadubhumika
    Contributor

    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!

  3. eitan-shalev commented on Sep 27, 2026

    @eitan-shalev
    ContributorAuthor

    @kadubhumika Go for it!

  4. kadubhumika commented on Sep 27, 2026

    @kadubhumika
    Contributor

    @kadubhumika Go for it!

    yes sure!

  5. jroachgolf84 commented on Sep 28, 2026

    @jroachgolf84
    Collaborator

    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.

  6. added
    area:UI
    and removed
    needs-triage
    on Sep 28, 2026
  7. kadubhumika commented on Sep 29, 2026

    @kadubhumika
    Contributor

    @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!

  8. jhaabhijeet864 commented on Oct 1, 2026

    @jhaabhijeet864

    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 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!

  9. added a commit that references this issue on Oct 2, 2026
    8b9f7b7
  10. added a commit that references this issue on Oct 2, 2026
    c318886
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area:UIkind:feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions