guan404ming commented on code in PR #55936:
URL: https://github.com/apache/airflow/pull/55936#discussion_r2477896019
##########
airflow-core/src/airflow/api_fastapi/core_api/routes/public/event_logs.py:
##########
@@ -59,7 +59,9 @@ def get_event_log(
session: SessionDep,
) -> EventLogResponse:
event_log = session.scalar(
- select(Log).where(Log.id ==
event_log_id).options(joinedload(Log.task_instance))
+ select(Log)
+ .where(Log.id == event_log_id)
+ .options(joinedload(Log.task_instance), joinedload(Log.dag_model))
Review Comment:
Since we set `noload` here, it would still need explicitly loaded
relationships for `dag_display_name` alias. Please let me know if I have any
misunderstanding, thanks!
--
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]