AryanK1511 opened a new issue, #53536: URL: https://github.com/apache/airflow/issues/53536
### Description The core FastAPI `GET /dags` endpoint provides several query parameters to filter the list of DAGs returned. This allows users to find specific DAGs based on criteria like tags, owners, or paused status. ### The Problem Currently, there is no way to filter DAGs based on whether they have import errors. The `DagModel` has a `has_import_errors` property, but this is not exposed as a filter in the API. This functionality is crucial to fix #53041. Once this is implemented, the UI filter functionality will be built on top of this. ### Proposed Solution I propose adding a new boolean query parameter, `has_import_errors`, to the `GET /dags` endpoint located at `airflow-core/src/airflow/api_fastapi/core_api/routes/public/dags.py`. - `GET /api/v1/dags?has_import_errors=true` should return only DAGs with import errors. - `GET /api/v1/dags?has_import_errors=false` should return only DAGs without import errors. ### Use case/motivation _No response_ ### Related issues - #53041 - #53040 ### Are you willing to submit a PR? - [x] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- 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]
