pierrejeambrun commented on code in PR #61483:
URL: https://github.com/apache/airflow/pull/61483#discussion_r2800032878
##########
airflow-core/src/airflow/api_fastapi/core_api/routes/ui/dags.py:
##########
@@ -270,8 +297,7 @@ def get_latest_run_info(dag_id: str, session: SessionDep)
-> DAGRunLightResponse
status.HTTP_400_BAD_REQUEST,
"`~` was supplied as dag_id, but querying multiple dags is not
supported.",
)
-
- latest_run_info_select = (
+ return session.execute(
Review Comment:
We can revert the change about this endpoint. Returning a validating a
`DAGRunLightResponse` shouldn't ever be a problem.
The main reason for this PR really is the above change.
##########
airflow-core/src/airflow/api_fastapi/core_api/routes/ui/dags.py:
##########
Review Comment:
Yeah I'd revert that and won't bother with an endpoint that probably isn't a
bottleneck.
--
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]