Skip to content

Add Dag ID filtering to Assets search - #70971

Merged
eladkal merged 2 commits into
apache:mainfrom
shivaam:feature-53052-assets-filter
Oct 2, 2026
Merged

eladkal merged 2 commits into
apache:mainfrom
shivaam:feature-53052-assets-filter

Conversation

@shivaam

@shivaam shivaam commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds an exact-match Dag ID filter to the Assets page, allowing users to find Assets related to a specific Dag using the existing filter-pill UI and Assets API.

Related to #53052.

Changes

  • Adds Dag ID to the existing Assets filter menu.
  • Passes the selected ID to the existing Assets API.
  • Stores the selection in the URL for sharing and reload persistence.
  • Keeps existing filter-pill values synchronized with browser Back/Forward navigation.
  • Ignores empty Dag IDs and preserves existing pagination-reset behavior.

Scope

This addresses the Dag relationship-filtering part of #53052, not the entire issue.

The existing API includes Assets that schedule the selected Dag, are produced by its tasks, or are consumed by its tasks. This filter combines those relationships; it does not provide separate Consuming Dag or Producing Task selectors.

Demo

download.mp4

Demonstrates Dag ID filtering, reload persistence, browser Back/Forward synchronization, and resetting filters.

Testing

  • Focused FilterBar and AssetsList tests: 21 passed.
  • Prettier, focused ESLint, TypeScript, and pre-commit hooks passed.
  • Verified in the local Airflow UI: filtering, empty/nonexistent IDs, reload, Back/Forward, clearing/reset, pagination reset, combinations with existing name/group filters, and returning from Asset details.

The full manual-stage hook run was not completed.

AI disclosure

  • Generative AI tooling was used to co-author this PR.

Generated-by: OpenAI Codex (GPT-5.6), following the Airflow contribution guidelines.

@boring-cyborg boring-cyborg Bot added the area:UI Related to UI/UX. For Frontend Developers. label Aug 3, 2026
Comment thread airflow-core/newsfragments/70971.feature.rst Outdated

@bbovenzi bbovenzi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's just fix the merge conflicts

Large Asset catalogs need a direct way to find the Assets related to a specific Dag while preserving shareable URL state.
Protect independent URL-backed filters when users narrow Asset catalogs and remove individual selections.
@shivaam
shivaam force-pushed the feature-53052-assets-filter branch from fc75e4c to 4bdd77b Compare October 1, 2026 21:32
@eladkal
eladkal merged commit a3e0715 into apache:main Oct 2, 2026
90 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers. type:improvement Changelog: Improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants