SameerMesiah97 opened a new pull request, #74127:
URL: https://github.com/apache/airflow/pull/74127
**Description**
This change adds support for filtering Deadline Alerts by name in the `GET
/dags/{dag_id}/deadlineAlerts` endpoint.
The implementation uses the existing `FilterParam` infrastructure, allowing
clients to retrieve a specific Deadline Alert by its configured name while
remaining consistent with filtering behaviour across the rest of the FastAPI
API.
**Rationale**
As the number of Deadline Alerts defined on a DAG grows, retrieving the full
list makes it more difficult for clients to locate a specific alert.
Adding server-side name filtering provides a simple way to retrieve the
relevant Deadline Alert without requiring clients to fetch and filter the
entire collection themselves. It also aligns this endpoint with the filtering
capabilities available across other Airflow API endpoints.
**Tests**
Added API tests verifying that:
- Filtering by name returns only the matching Deadline Alert.
- Filtering by an unknown name returns an empty result.
- Name filtering composes correctly with `version_number` filtering.
**Backwards Compatibility**
This change is fully backwards compatible. Requests that do not specify the
`name` query parameter continue to return all Deadline Alerts for the requested
DAG.
###### Was generative AI tooling used to co-author this PR?
- [X] Yes (please specify the tool below)
Generated-by: [GPT 5.6] following [the
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
--
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]