[sql lab] simplify the visualize flow (#5523)

* [sql lab] simplify the visualize flow

The "visualize flow" linking SQL Lab to the "explore view" has never
worked so great for people, here's a list of issues:

* it's not really clear to users that their query is wrapped as a
subquery, and the explore view runs queries on top of it

* lint + fix tests

* Addressing comments
This commit is contained in:
Maxime Beauchemin
2018-08-02 10:52:38 -07:00
committed by GitHub
parent 1b9e5d4174
commit fe6846b8db
18 changed files with 475 additions and 1578 deletions
+12 -15
View File
@@ -236,21 +236,18 @@ class SqlLabTests(SupersetTestCase):
'chartType': 'dist_bar',
'datasourceName': 'test_viz_flow_table',
'schema': 'superset',
'columns': {
'viz_type': {
'is_date': False,
'type': 'STRING',
'nam:qe': 'viz_type',
'is_dim': True,
},
'ccount': {
'is_date': False,
'type': 'OBJECT',
'name': 'ccount',
'is_dim': True,
'agg': 'sum',
},
},
'columns': [{
'is_date': False,
'type': 'STRING',
'nam:qe': 'viz_type',
'is_dim': True,
}, {
'is_date': False,
'type': 'OBJECT',
'name': 'ccount',
'is_dim': True,
'agg': 'sum',
}],
'sql': """\
SELECT viz_type, count(1) as ccount
FROM slices