You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by as...@apache.org on 2021/06/22 13:46:25 UTC
[airflow] 35/38: Fix Dag Details start date bug (#16206)
This is an automated email from the ASF dual-hosted git repository.
ash pushed a commit to branch v2-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 8114542a21159bf3943d0966f60d7d583b39de88
Author: Brent Bovenzi <br...@gmail.com>
AuthorDate: Tue Jun 8 10:13:18 2021 -0400
Fix Dag Details start date bug (#16206)
* Only show Start Date when catchup=True
* add catchup field to details
* add started field for catchup=false dags
(cherry picked from commit ebc03c63af7282c9d826054b17fe7ed50e09fe4e)
---
airflow/www/templates/airflow/dag_details.html | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/airflow/www/templates/airflow/dag_details.html b/airflow/www/templates/airflow/dag_details.html
index 8d30ef2..e841319 100644
--- a/airflow/www/templates/airflow/dag_details.html
+++ b/airflow/www/templates/airflow/dag_details.html
@@ -49,9 +49,20 @@
<td>{{ dag.schedule_interval }}</td>
</tr>
<tr>
- <th>Start Date</th>
- <td>{{ dag.start_date }}</td>
+ <th>Catchup</th>
+ <td>{{ dag.catchup }}</td>
</tr>
+ {% if dag.catchup %}
+ <tr>
+ <th>Start Date</th>
+ <td class="js-format-date">{{ dag.start_date }}</td>
+ </tr>
+ {% else %}
+ <tr>
+ <th>Started</th>
+ <td>{{ states|length > 0 }}</td>
+ </tr>
+ {% endif %}
<tr>
<th>End Date</th>
<td>{{ dag.end_date }}</td>