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-1064] Change default sort to job_id for TaskInstanceModelView
Date Tue, 04 Apr 2017 15:19:59 GMT
Repository: incubator-airflow
Updated Branches:
  refs/heads/master 4a6bef69d -> 8fdfb16cc


[AIRFLOW-1064] Change default sort to job_id for TaskInstanceModelView

The TaskInstanceModelView default sort column is
on an unindexed column.
We shouldn't need an index on start_date, and
job_id is just as logical
of a default sort.

Closes #2215 from saguziel/aguziel-fix-ti-page


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

Branch: refs/heads/master
Commit: 8fdfb16cc3c0903edd8b89b836f5bdf8bf371ce3
Parents: 4a6bef6
Author: Alex Guziel <alex.guziel@airbnb.com>
Authored: Tue Apr 4 17:19:43 2017 +0200
Committer: Bolke de Bruin <bolke@xs4all.nl>
Committed: Tue Apr 4 17:19:43 2017 +0200

----------------------------------------------------------------------
 airflow/www/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/8fdfb16c/airflow/www/views.py
----------------------------------------------------------------------
diff --git a/airflow/www/views.py b/airflow/www/views.py
index a9bab31..3973866 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -2336,7 +2336,7 @@ class TaskInstanceModelView(ModelViewOnly):
         queued_dttm=datetime_f,
         dag_id=dag_link, duration=duration_f)
     column_searchable_list = ('dag_id', 'task_id', 'state')
-    column_default_sort = ('start_date', True)
+    column_default_sort = ('job_id', True)
     form_choices = {
         'state': [
             ('success', 'success'),


Mime
View raw message