pierrejeambrun commented on code in PR #44701: URL: https://github.com/apache/airflow/pull/44701#discussion_r1879836056
########## airflow/api_fastapi/core_api/routes/ui/structure.py: ########## @@ -63,4 +63,31 @@ def structure_data( "edges": edges, } + if external_dependencies: + entry_node_ref = nodes[0] Review Comment: I'm not sure if a serialized dag can have no tasks. I tried locally and apparently empty dags (without tasks defined) are not saved to the db so I would say that `nodes` cannot be empty. But to be safe I still added a check for that, 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: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org