jscheffl commented on code in PR #38446:
URL: https://github.com/apache/airflow/pull/38446#discussion_r1540014677
##########
airflow/api_connexion/schemas/dag_schema.py:
##########
@@ -50,6 +50,7 @@ class Meta:
model = DagModel
dag_id = auto_field(dump_only=True)
+ dag_display_name = fields.Method("get_dag_display_name", dump_only=True)
Review Comment:
Thanks for the feedback. `auto_field()`is not working because it is a hybrid
property and I did not want to expose the bare DB field.
But actually via `task_display_name =
fields.String(attribute="task_display_name")` it is working.
--
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]