pierrejeambrun commented on code in PR #55764:
URL: https://github.com/apache/airflow/pull/55764#discussion_r2358229980
##########
airflow-core/src/airflow/api_fastapi/core_api/routes/public/dag_sources.py:
##########
@@ -69,11 +71,14 @@ def get_dag_source(
status.HTTP_404_NOT_FOUND,
detail=f"Code not found. dag_id='{dag_id}'
version_number='{version_number}'",
)
+ file_location = dag_version.dag_code.fileloc
+ file_name = Path(file_location).name if file_location else None
Review Comment:
That should be in the response serializer. (Use aliases et computed fields
to achieve the same)
--
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]