You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by bb...@apache.org on 2021/10/19 03:06:26 UTC
[airflow] branch replace-execution-date-with-logical-date created
(now babe8fd)
This is an automated email from the ASF dual-hosted git repository.
bbovenzi pushed a change to branch replace-execution-date-with-logical-date
in repository https://gitbox.apache.org/repos/asf/airflow.git.
at babe8fd Rename execution date in forms and tables
This branch includes the following new commits:
new babe8fd Rename execution date in forms and tables
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[airflow] 01/01: Rename execution date in forms and tables
Posted by bb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
bbovenzi pushed a commit to branch replace-execution-date-with-logical-date
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit babe8fde5a3b17b9b50e1ddbfd21a35031b27ada
Author: Brent Bovenzi <br...@gmail.com>
AuthorDate: Mon Oct 18 22:04:23 2021 -0500
Rename execution date in forms and tables
---
airflow/www/forms.py | 6 +++---
airflow/www/views.py | 20 ++++++++++++++++++--
2 files changed, 21 insertions(+), 5 deletions(-)
diff --git a/airflow/www/forms.py b/airflow/www/forms.py
index d7f42f4..3a07cbe 100644
--- a/airflow/www/forms.py
+++ b/airflow/www/forms.py
@@ -90,7 +90,7 @@ class DateTimeWithTimezoneField(Field):
class DateTimeForm(FlaskForm):
"""Date filter form needed for task views"""
- execution_date = DateTimeWithTimezoneField("Execution date", widget=AirflowDateTimePickerWidget())
+ execution_date = DateTimeWithTimezoneField("Logical date", widget=AirflowDateTimePickerWidget())
class DateTimeWithNumRunsForm(FlaskForm):
@@ -133,7 +133,7 @@ class DagRunEditForm(DynamicForm):
run_id = StringField(lazy_gettext('Run Id'), widget=BS3TextFieldROWidget())
state = StringField(lazy_gettext('State'), widget=BS3TextFieldROWidget())
execution_date = DateTimeWithTimezoneField(
- lazy_gettext('Execution Date'),
+ lazy_gettext('Logical Date'),
widget=AirflowDateTimePickerROWidget(),
)
conf = TextAreaField(lazy_gettext('Conf'), widget=BS3TextAreaROWidget())
@@ -167,7 +167,7 @@ class TaskInstanceEditForm(DynamicForm):
validators=[InputRequired()],
)
execution_date = DateTimeWithTimezoneField(
- lazy_gettext('Execution Date'),
+ lazy_gettext('Logical Date'),
widget=AirflowDateTimePickerROWidget(),
validators=[InputRequired()],
)
diff --git a/airflow/www/views.py b/airflow/www/views.py
index 71fedd6..d8c9e64 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -3231,6 +3231,11 @@ class SlaMissModelView(AirflowModelView):
]
list_columns = ['dag_id', 'task_id', 'execution_date', 'email_sent', 'timestamp']
+
+ label_columns = {
+ 'execution_date': 'Logical Date',
+ }
+
add_columns = ['dag_id', 'task_id', 'execution_date', 'email_sent', 'timestamp']
edit_columns = ['dag_id', 'task_id', 'execution_date', 'email_sent', 'timestamp']
search_columns = ['dag_id', 'task_id', 'email_sent', 'timestamp', 'execution_date']
@@ -3267,6 +3272,10 @@ class XComModelView(AirflowModelView):
permissions.ACTION_CAN_ACCESS_MENU,
]
+ label_columns = {
+ 'execution_date': 'Logical Date',
+ }
+
search_columns = ['key', 'value', 'timestamp', 'execution_date', 'task_id', 'dag_id']
list_columns = ['key', 'value', 'timestamp', 'execution_date', 'task_id', 'dag_id']
base_order = ('execution_date', 'desc')
@@ -3943,6 +3952,9 @@ class DagRunModelView(AirflowPrivilegeVerifierModelView):
'end_date',
'external_trigger',
]
+ label_columns = {
+ 'execution_date': 'Logical Date',
+ }
edit_columns = ['state', 'dag_id', 'execution_date', 'start_date', 'end_date', 'run_id', 'conf']
base_order = ('execution_date', 'desc')
@@ -4087,6 +4099,10 @@ class LogModelView(AirflowModelView):
list_columns = ['id', 'dttm', 'dag_id', 'task_id', 'event', 'execution_date', 'owner', 'extra']
search_columns = ['dag_id', 'task_id', 'event', 'execution_date', 'owner', 'extra']
+ label_columns = {
+ 'execution_date': 'Logical Date',
+ }
+
base_order = ('dttm', 'desc')
base_filters = [['dag_id', DagFilter, lambda: []]]
@@ -4130,7 +4146,7 @@ class TaskRescheduleModelView(AirflowModelView):
]
label_columns = {
- 'dag_run.execution_date': 'Execution Date',
+ 'dag_run.execution_date': 'Logical Date',
}
search_columns = [
@@ -4261,7 +4277,7 @@ class TaskInstanceModelView(AirflowPrivilegeVerifierModelView):
]
label_columns = {
- 'dag_run.execution_date': 'Execution Date',
+ 'dag_run.execution_date': 'Logical Date',
}
search_columns = [