airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [13/18] incubator-airflow git commit: [AIRFLOW-1064] Change default sort to job_id for TaskInstanceModelView
Date Thu, 08 Jun 2017 15:36:56 GMT
[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/708e8ad7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/708e8ad7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/708e8ad7

Branch: refs/heads/v1-8-test
Commit: 708e8ad7bbaf865ca850bbcdfcfd89b914a09dea
Parents: c39d915
Author: Alex Guziel <alex.guziel@airbnb.com>
Authored: Tue Apr 4 17:19:43 2017 +0200
Committer: Maxime Beauchemin <maximebeauchemin@gmail.com>
Committed: Thu Jun 8 08:36:20 2017 -0700

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


http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/708e8ad7/airflow/www/views.py
----------------------------------------------------------------------
diff --git a/airflow/www/views.py b/airflow/www/views.py
index 46cbbb9..a873e63 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -2355,7 +2355,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