You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by bo...@apache.org on 2017/06/07 09:43:21 UTC

incubator-airflow git commit: [AIRFLOW-1282] Fix known event column sorting

Repository: incubator-airflow
Updated Branches:
  refs/heads/master 4764646b1 -> a52123dca


[AIRFLOW-1282] Fix known event column sorting

Closes #2350 from skudriashev/airflow-1282


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

Branch: refs/heads/master
Commit: a52123dcaaf8e833c695e7fca12cf2a5dd31f291
Parents: 4764646
Author: Stanislav Kudriashev <st...@gmail.com>
Authored: Wed Jun 7 11:43:13 2017 +0200
Committer: Bolke de Bruin <bo...@xs4all.nl>
Committed: Wed Jun 7 11:43:13 2017 +0200

----------------------------------------------------------------------
 airflow/www/views.py | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/a52123dc/airflow/www/views.py
----------------------------------------------------------------------
diff --git a/airflow/www/views.py b/airflow/www/views.py
index 746ae42..b401434 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -2187,6 +2187,13 @@ class KnownEventView(wwwutils.DataProfilingMixin, AirflowModelView):
         'reported_by',
     )
     column_default_sort = ("start_date", True)
+    column_sortable_list = (
+        'label',
+        ('event_type', 'event_type.know_event_type'),
+        'start_date',
+        'end_date',
+        ('reported_by', 'reported_by.username'),
+    )
 
 
 class KnownEventTypeView(wwwutils.DataProfilingMixin, AirflowModelView):