apache / apache/airflow

[Filters] Add filtering support to Search - Dags

Open
#53,041 20 comments 2 reactions 1 assignee Assigned to @vatsrahul1001 View on GitHub
area:UI good first issue kind:feature
Dominant language
Python
Stars
46.9k
Forks
17.8k
Avg merge
2d 10h
Merged PRs (30d)
483

Description

### View
Search - Dags

Image

### Filters to Add

- Filter DAGs with **Import Errors**
↪ `has_import_errors = true`

- Filter DAGs by **Owner**
↪ `owners = ['alice', 'bob', 'airflow']`

- Filter **Stale DAGs**
↪ `is_stale = true`

- Filter DAGs by **Timetable**
↪ (e.g. `CronTriggerTimetable`, `AssetOrTimeSchedule`)

- Filter DAGs by **Bundle Name** or **Version**
↪ `bundle_name = 'analytics'`, `bundle_version = 'v1.2.3'`

- Filter DAGs with **Asset-Based Schedules**
↪ Requires awareness of upstream asset dependencies

- Filter **Unscheduled DAGs**
↪ `schedule_interval = None` or equivalent

### API Support

⚠️ Partial

- `/dags` returns many required fields (`has_import_errors`, `is_stale`, `bundle_name`, `owners`)
- But does **not** currently support these as filter query parameters
- Would require extending the DAG API to support additional filters

### UI Impact

- Filters would appear at the top of the Search – DAGs screen
- Should be consistent with filters for status, tags, and active/paused state already present
- Multi-select or autocomplete where applicable (e.g., owners)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.