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/04/30 16:27:39 UTC

[GitHub] [airflow] ashb commented on a change in pull request #5212: [AIRFLOW-4430] Fix "Zoom into Sub DAG" link

ashb commented on a change in pull request #5212: [AIRFLOW-4430] Fix "Zoom into Sub DAG" link
URL: https://github.com/apache/airflow/pull/5212#discussion_r279833711
 
 

 ##########
 File path: airflow/www/views.py
 ##########
 @@ -1149,11 +1149,10 @@ def tree(self):
         default_dag_run = conf.getint('webserver', 'default_dag_run_display_number')
         dag_id = request.args.get('dag_id')
         blur = conf.getboolean('webserver', 'demo_mode')
-        dag_model = DagModel.get_dagmodel(dag_id)
-        if not dag_model:
-            flash('DAG "{0}" seems to be missing in database.'.format(dag_id), "error")
+        dag = dagbag.get_dag(dag_id)
 
 Review comment:
   We'd like to stay using the DagModel if possible. Is this change required?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services