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 2021/01/07 14:41:35 UTC

[GitHub] [airflow] astleychen commented on a change in pull request #11778: Use default view in dr op link

astleychen commented on a change in pull request #11778:
URL: https://github.com/apache/airflow/pull/11778#discussion_r553369075



##########
File path: airflow/operators/dagrun_operator.py
##########
@@ -38,7 +39,8 @@ class TriggerDagRunLink(BaseOperatorLink):
     name = 'Triggered DAG'
 
     def get_link(self, operator, dttm):
-        return f"/graph?dag_id={operator.trigger_dag_id}&root=&execution_date={quote(dttm.isoformat())}"
+        view = conf.get('webserver', 'dag_default_view').lower()
+        return f"/{view}?dag_id={operator.trigger_dag_id}&root=&execution_date={quote(dttm.isoformat())}"

Review comment:
       Looks like it remains an open issue for v2 when prefixing `/base/` in `base_url`. Is there any issue open here for tracking?




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