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



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

Review comment:
       Do we need to specify `"root": ""` everytime if it is blank.
   
   If so maybe just add it to `build_airflow_url_with_query` to add `"root": 
""` if `root` key isn't present in the dict (query).
   
   




----------------------------------------------------------------
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:
[email protected]


Reply via email to