You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/01/12 10:33:33 UTC
[GitHub] ffinfo commented on a change in pull request #4368: [AIRFLOW-3561]
Improve queries
ffinfo commented on a change in pull request #4368: [AIRFLOW-3561] Improve queries
URL: https://github.com/apache/airflow/pull/4368#discussion_r247309045
##########
File path: airflow/models/__init__.py
##########
@@ -2999,15 +2999,29 @@ class DagModel(Base):
fileloc = Column(String(2000))
# String representing the owners
owners = Column(String(2000))
+ # Description of the dag
+ description = Column(Text)
+ # Default view of the inside the webserver
+ default_view = Column(String(25))
def __repr__(self):
return "<DAG: {self.dag_id}>".format(self=self)
+ @property
+ def timezone(self):
+ return settings.TIMEZONE
Review comment:
This is indeed a bit tricky. I have added this because in the html templates this variable is used. Some templates now takes a DagModel instead of a DAG. In the end I would like this to be in the complete webserver
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services