You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2019/06/02 19:11:17 UTC

[incubator-superset] branch master updated: [query] Fix, remove not possible to order columns (#7636)

This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 7dd6635  [query] Fix, remove not possible to order columns (#7636)
7dd6635 is described below

commit 7dd66358f65222c4987adc0a3c867516ac6f0efd
Author: Daniel Vaz Gaspar <da...@gmail.com>
AuthorDate: Sun Jun 2 20:11:00 2019 +0100

    [query] Fix, remove not possible to order columns (#7636)
---
 superset/views/sql_lab.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/superset/views/sql_lab.py b/superset/views/sql_lab.py
index 98046f8..1140672 100644
--- a/superset/views/sql_lab.py
+++ b/superset/views/sql_lab.py
@@ -60,6 +60,7 @@ class QueryView(SupersetModelView):
     edit_title = _('Edit Query')
 
     list_columns = ['username', 'database_name', 'status', 'start_time', 'end_time']
+    order_columns = ['status', 'start_time', 'end_time']
     base_filters = [['id', QueryFilter, lambda: []]]
     label_columns = {
         'user': _('User'),
@@ -91,6 +92,9 @@ class SavedQueryView(SupersetModelView, DeleteMixin):
     list_columns = [
         'label', 'user', 'database', 'schema', 'description',
         'modified', 'pop_tab_link']
+    order_columns = [
+        'label', 'schema', 'description',
+        'modified']
     show_columns = [
         'id', 'label', 'user', 'database',
         'description', 'sql', 'pop_tab_link']