jens-scheffler-bosch commented on code in PR #32520:
URL: https://github.com/apache/airflow/pull/32520#discussion_r1320729604


##########
airflow/models/taskinstance.py:
##########
@@ -436,6 +436,7 @@ class TaskInstance(Base, LoggingMixin):
     next_method = Column(String(1000))
     next_kwargs = Column(MutableDict.as_mutable(ExtendedJSON))
 
+    _task_display_name = Column("task_display_name", String(2000), default="")

Review Comment:
   The model is defined as far as I understand the code to use the `task_id` if 
no display name is given. This is good as it saved space in the DB (if no 
display name given) as well as allows migration (else during migration the 
column needs to be filled).
   I'd propose to keep it this way.



##########
airflow/models/dag.py:
##########
@@ -3378,6 +3394,8 @@ class DagModel(Base):
     processor_subdir = Column(String(2000), nullable=True)
     # String representing the owners
     owners = Column(String(2000))
+    # Display name of the dag
+    _dag_display_name = Column("dag_display_name", String(2000), default="")

Review Comment:
   Same as above: The model is defined as far as I understand the code to use 
the `task_id` if no display name is given. This is good as it saved space in 
the DB (if no display name given) as well as allows migration (else during 
migration the column needs to be filled).
   I'd propose to keep it this way.



-- 
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]

Reply via email to