uranusjr commented on code in PR #51406:
URL: https://github.com/apache/airflow/pull/51406#discussion_r2141668796
##########
airflow-core/src/airflow/api_fastapi/core_api/routes/public/import_error.py:
##########
@@ -152,14 +152,20 @@ def get_import_errors(
readable_dag_ids = auth_manager.get_authorized_dag_ids(method="GET",
user=user)
# Build a cte that fetches dag_ids for each file location
visiable_files_cte = (
- select(DagModel.fileloc,
DagModel.dag_id).where(DagModel.dag_id.in_(readable_dag_ids)).cte()
+ select(DagModel.relative_fileloc, DagModel.dag_id,
DagModel.bundle_name)
+ .where(DagModel.dag_id.in_(readable_dag_ids))
+ .cte()
)
# Prepare the import errors query by joining with the cte.
# Each returned row will be a tuple: (ParseImportError, dag_id)
import_errors_stmt = (
select(ParseImportError, visiable_files_cte.c.dag_id)
- .join(visiable_files_cte, ParseImportError.filename ==
visiable_files_cte.c.fileloc)
+ .join(
+ visiable_files_cte,
Review Comment:
Most likely just a typo. Let’s fix this.
--
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]