You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "AryanK1511 (via GitHub)" <gi...@apache.org> on 2025/07/19 13:19:52 UTC
[I] Add `has_import_errors` filter to Core API `GET /dags` endpoint [airflow]
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: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Add `has_import_errors` filter to Core API `GET /dags` endpoint [airflow]
Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun closed issue #53536: Add `has_import_errors` filter to Core API `GET /dags` endpoint
URL: https://github.com/apache/airflow/issues/53536
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Add `has_import_errors` filter to Core API `GET /dags` endpoint [airflow]
Posted by "gyli (via GitHub)" <gi...@apache.org>.
gyli commented on issue #53536:
URL: https://github.com/apache/airflow/issues/53536#issuecomment-3192557716
I can take this one. I left a comment in the parent issue https://github.com/apache/airflow/issues/53041 mentioning why I think this field could still be helpful.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Add `has_import_errors` filter to Core API `GET /dags` endpoint [airflow]
Posted by "AryanK1511 (via GitHub)" <gi...@apache.org>.
AryanK1511 commented on issue #53536:
URL: https://github.com/apache/airflow/issues/53536#issuecomment-3092350613
Hello! I am working on #53041 and need someone to assign this issue to me, as it is a prerequisite for that task.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Add `has_import_errors` filter to Core API `GET /dags` endpoint [airflow]
Posted by "AryanK1511 (via GitHub)" <gi...@apache.org>.
AryanK1511 commented on issue #53536:
URL: https://github.com/apache/airflow/issues/53536#issuecomment-3116932708
Facing some issues here:
https://github.com/apache/airflow/issues/53041#issuecomment-3094705367
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Add `has_import_errors` filter to Core API `GET /dags` endpoint [airflow]
Posted by "gyli (via GitHub)" <gi...@apache.org>.
gyli commented on issue #53536:
URL: https://github.com/apache/airflow/issues/53536#issuecomment-3192857183
Draft PR submitted, @AryanK1511 could you plz review, as you seem have done similar changes?
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Add `has_import_errors` filter to Core API `GET /dags` endpoint [airflow]
Posted by "AryanK1511 (via GitHub)" <gi...@apache.org>.
AryanK1511 commented on issue #53536:
URL: https://github.com/apache/airflow/issues/53536#issuecomment-3170656774
Something came up, so I won’t be able to work on Airflow for the next couple of weeks. Could this issue be assigned to someone else?
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org