superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: [query] Fix, remove not possible to order columns (#7636)
Date Sun, 02 Jun 2019 19:11:17 GMT
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 <danielvazgaspar@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']


Mime
View raw message