airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject incubator-airflow git commit: [AIRFLOW-1282] Fix known event column sorting
Date Wed, 07 Jun 2017 09:43:33 GMT
Repository: incubator-airflow
Updated Branches:
  refs/heads/v1-8-test cc2b4cb22 -> 829a18a4b


[AIRFLOW-1282] Fix known event column sorting

Closes #2350 from skudriashev/airflow-1282

(cherry picked from commit a52123dcaaf8e833c695e7fca12cf2a5dd31f291)
Signed-off-by: Bolke de Bruin <bolke@xs4all.nl>


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

Branch: refs/heads/v1-8-test
Commit: 829a18a4b5d0e767b7253e73c8b821e339db010f
Parents: cc2b4cb
Author: Stanislav Kudriashev <stas.kudriashev@gmail.com>
Authored: Wed Jun 7 11:43:13 2017 +0200
Committer: Bolke de Bruin <bolke@xs4all.nl>
Committed: Wed Jun 7 11:43:26 2017 +0200

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


http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/829a18a4/airflow/www/views.py
----------------------------------------------------------------------
diff --git a/airflow/www/views.py b/airflow/www/views.py
index 13bbb70..29f3e91 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -2103,6 +2103,13 @@ class KnowEventView(wwwutils.DataProfilingMixin, AirflowModelView):
     column_list = (
         'label', 'event_type', 'start_date', 'end_date', '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 KnowEventTypeView(wwwutils.DataProfilingMixin, AirflowModelView):


Mime
View raw message