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/04/04 15:19:59 UTC
incubator-airflow git commit: [AIRFLOW-1064] Change default sort to
job_id for TaskInstanceModelView
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 <al...@airbnb.com>
Authored: Tue Apr 4 17:19:43 2017 +0200
Committer: Bolke de Bruin <bo...@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'),