You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ms...@apache.org on 2021/06/28 04:55:31 UTC
[airflow] branch main updated: Fix TI success confirm page (#16650)
This is an automated email from the ASF dual-hosted git repository.
msumit pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 5306dc5 Fix TI success confirm page (#16650)
5306dc5 is described below
commit 5306dc5557bbb7b1a553e2dfea68ddc93c709faa
Author: Sumit Maheshwari <ms...@users.noreply.github.com>
AuthorDate: Mon Jun 28 10:25:03 2021 +0530
Fix TI success confirm page (#16650)
---
airflow/www/templates/airflow/dag.html | 16 ++++++++--------
airflow/www/views.py | 24 ++++++++++++------------
2 files changed, 20 insertions(+), 20 deletions(-)
diff --git a/airflow/www/templates/airflow/dag.html b/airflow/www/templates/airflow/dag.html
index b619585..001682f 100644
--- a/airflow/www/templates/airflow/dag.html
+++ b/airflow/www/templates/airflow/dag.html
@@ -293,19 +293,19 @@
<div class="row">
<span class="btn-group col-xs-12 col-sm-9 task-instance-modal-column" data-toggle="buttons">
<label class="btn btn-default">
- <input type="checkbox" value="true" name="failed_past" autocomplete="off">
+ <input type="checkbox" value="true" name="past" autocomplete="off">
Past
</label>
<label class="btn btn-default">
- <input type="checkbox" value="true" name="failed_future" autocomplete="off">
+ <input type="checkbox" value="true" name="future" autocomplete="off">
Future
</label>
<label class="btn btn-default">
- <input type="checkbox" value="true" name="failed_upstream" autocomplete="off">
+ <input type="checkbox" value="true" name="upstream" autocomplete="off">
Upstream
</label>
<label class="btn btn-default">
- <input type="checkbox" value="true" name="failed_downstream" autocomplete="off">
+ <input type="checkbox" value="true" name="downstream" autocomplete="off">
Downstream
</label>
</span>
@@ -326,19 +326,19 @@
<div class="row">
<span class="btn-group col-xs-12 col-sm-9 task-instance-modal-column" data-toggle="buttons">
<label class="btn btn-default">
- <input type="checkbox" value="true" name="success_past" autocomplete="off">
+ <input type="checkbox" value="true" name="past" autocomplete="off">
Past
</label>
<label class="btn btn-default">
- <input type="checkbox" value="true" name="success_future" autocomplete="off">
+ <input type="checkbox" value="true" name="future" autocomplete="off">
Future
</label>
<label class="btn btn-default">
- <input type="checkbox" value="true" name="success_upstream" autocomplete="off">
+ <input type="checkbox" value="true" name="upstream" autocomplete="off">
Upstream
</label>
<label class="btn btn-default">
- <input type="checkbox" value="true" name="success_downstream" autocomplete="off">
+ <input type="checkbox" value="true" name="downstream" autocomplete="off">
Downstream
</label>
</span>
diff --git a/airflow/www/views.py b/airflow/www/views.py
index 033e2c2..fe5e07d 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -1879,10 +1879,10 @@ class Airflow(AirflowBaseView): # noqa: D101 pylint: disable=too-many-public-m
execution_date = args.get('execution_date')
state = args.get('state')
- upstream = to_boolean(args.get('failed_upstream'))
- downstream = to_boolean(args.get('failed_downstream'))
- future = to_boolean(args.get('failed_future'))
- past = to_boolean(args.get('failed_past'))
+ upstream = to_boolean(args.get('upstream'))
+ downstream = to_boolean(args.get('downstream'))
+ future = to_boolean(args.get('future'))
+ past = to_boolean(args.get('past'))
try:
dag = current_app.dag_bag.get_dag(dag_id)
@@ -1952,10 +1952,10 @@ class Airflow(AirflowBaseView): # noqa: D101 pylint: disable=too-many-public-m
origin = get_safe_url(args.get('origin'))
execution_date = args.get('execution_date')
- upstream = to_boolean(args.get('failed_upstream'))
- downstream = to_boolean(args.get('failed_downstream'))
- future = to_boolean(args.get('failed_future'))
- past = to_boolean(args.get('failed_past'))
+ upstream = to_boolean(args.get('upstream'))
+ downstream = to_boolean(args.get('downstream'))
+ future = to_boolean(args.get('future'))
+ past = to_boolean(args.get('past'))
return self._mark_task_instance_state(
dag_id,
@@ -1985,10 +1985,10 @@ class Airflow(AirflowBaseView): # noqa: D101 pylint: disable=too-many-public-m
origin = get_safe_url(args.get('origin'))
execution_date = args.get('execution_date')
- upstream = to_boolean(args.get('success_upstream'))
- downstream = to_boolean(args.get('success_downstream'))
- future = to_boolean(args.get('success_future'))
- past = to_boolean(args.get('success_past'))
+ upstream = to_boolean(args.get('upstream'))
+ downstream = to_boolean(args.get('downstream'))
+ future = to_boolean(args.get('future'))
+ past = to_boolean(args.get('past'))
return self._mark_task_instance_state(
dag_id,