Repository: incubator-airflow
Updated Branches:
  refs/heads/master 5646d3115 -> 78f3d3338


[AIRFLOW-2681] Include last dag run of externally triggered DAGs in UI.

Closes #3551 from dhatch/AIRFLOW-2681


Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/78f3d333
Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/78f3d333
Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/78f3d333

Branch: refs/heads/master
Commit: 78f3d33388c772eafbed8fff81b0e50188297fc6
Parents: 5646d31
Author: David Hatch <[email protected]>
Authored: Tue Jun 26 15:26:13 2018 -0700
Committer: Joy Gao <[email protected]>
Committed: Tue Jun 26 15:26:20 2018 -0700

----------------------------------------------------------------------
 airflow/www/templates/airflow/dags.html      | 2 +-
 airflow/www_rbac/templates/airflow/dags.html | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/78f3d333/airflow/www/templates/airflow/dags.html
----------------------------------------------------------------------
diff --git a/airflow/www/templates/airflow/dags.html 
b/airflow/www/templates/airflow/dags.html
index 8a86948..0a7a6ec 100644
--- a/airflow/www/templates/airflow/dags.html
+++ b/airflow/www/templates/airflow/dags.html
@@ -119,7 +119,7 @@
                 <!-- Column 7: Last Run -->
                 <td class="text-nowrap latest_dag_run {{ dag.dag_id }}">
                   {% if dag %}
-                    {% set last_run = dag.get_last_dagrun() %}
+                    {% set last_run = 
dag.get_last_dagrun(include_externally_triggered=True) %}
                     {% if last_run and last_run.execution_date %}
                       <a href="{{ url_for('airflow.graph', dag_id=dag.dag_id, 
execution_date=last_run.execution_date) }}">
                         {{ last_run.execution_date.strftime("%Y-%m-%d %H:%M") 
}}

http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/78f3d333/airflow/www_rbac/templates/airflow/dags.html
----------------------------------------------------------------------
diff --git a/airflow/www_rbac/templates/airflow/dags.html 
b/airflow/www_rbac/templates/airflow/dags.html
index ed11a56..c7aa338 100644
--- a/airflow/www_rbac/templates/airflow/dags.html
+++ b/airflow/www_rbac/templates/airflow/dags.html
@@ -120,7 +120,7 @@
                 <!-- Column 7: Last Run -->
                 <td class="text-nowrap latest_dag_run {{ dag.dag_id }}">
                   {% if dag %}
-                    {% set last_run = dag.get_last_dagrun() %}
+                    {% set last_run = 
dag.get_last_dagrun(include_externally_triggered=True) %}
                     {% if last_run and last_run.execution_date %}
                       <a href="{{ url_for('Airflow.graph', dag_id=dag.dag_id, 
execution_date=last_run.execution_date) }}">
                         {{ last_run.execution_date.strftime("%Y-%m-%d %H:%M") 
}}

Reply via email to