ashb commented on a change in pull request #5339: [AIRFLOW-3160] (Unrevert) 
Load latest_dagruns asynchronously
URL: https://github.com/apache/airflow/pull/5339#discussion_r291098359
 
 

 ##########
 File path: airflow/www/templates/airflow/dags.html
 ##########
 @@ -309,6 +307,21 @@ <h2>DAGs</h2>
           }
         });
       });
+      d3.json("{{ url_for('Airflow.last_dagruns') }}", function(error, json) {
+        for(var safe_dag_id in json) {
+          dag_id = json[safe_dag_id].dag_id;
+          last_run = json[safe_dag_id].last_run;
+          g = d3.select('div#last-run-' + safe_dag_id)
+          g.selectAll('a')
+            .attr("href", "{{ url_for('Airflow.graph') }}?dag_id=" + 
encodeUriComponent(dag_id) + "&execution_date=" + last_run)
 
 Review comment:
   Whops that was my bad.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to