From 9fa98baa0f129793fb5df1b555a09192d9157d70 Mon Sep 17 00:00:00 2001 From: Alison Date: Mon, 24 Jul 2017 00:14:44 -0500 Subject: [PATCH] add toggle_table_string (re #130) Makes the _v of the schema browser toggle into a configurable string per data source. It is not required and if it is not filled in the toggle will not appear in the schema browser. --- client/app/components/queries/schema-browser.html | 4 +++- client/app/components/queries/schema-browser.js | 6 ++++-- client/app/pages/queries/query.html | 5 +++-- redash/models.py | 13 +++---------- redash/query_runner/activedata.py | 6 ++++++ redash/query_runner/athena.py | 11 +++++++++++ redash/query_runner/axibase_tsd.py | 6 ++++++ redash/query_runner/big_query.py | 6 ++++++ redash/query_runner/cass.py | 6 ++++++ redash/query_runner/clickhouse.py | 6 ++++++ redash/query_runner/dynamodb_sql.py | 6 ++++++ redash/query_runner/elasticsearch.py | 6 ++++++ redash/query_runner/google_analytics.py | 6 ++++++ redash/query_runner/google_spreadsheets.py | 6 ++++++ redash/query_runner/graphite.py | 6 ++++++ redash/query_runner/hive_ds.py | 6 ++++++ redash/query_runner/impala_ds.py | 6 ++++++ redash/query_runner/influx_db.py | 6 ++++++ redash/query_runner/jql.py | 6 ++++++ redash/query_runner/memsql_ds.py | 6 ++++++ redash/query_runner/mongodb.py | 6 ++++++ redash/query_runner/mssql.py | 6 ++++++ redash/query_runner/mysql.py | 6 ++++++ redash/query_runner/oracle.py | 6 ++++++ redash/query_runner/pg.py | 6 ++++++ redash/query_runner/presto.py | 6 ++++++ redash/query_runner/python.py | 6 ++++++ redash/query_runner/salesforce.py | 6 ++++++ redash/query_runner/script.py | 6 ++++++ redash/query_runner/snowflake.py | 6 ++++++ redash/query_runner/sqlite.py | 6 ++++++ redash/query_runner/treasuredata.py | 6 ++++++ redash/query_runner/url.py | 6 ++++++ redash/query_runner/vertica.py | 6 ++++++ tests/test_cli.py | 2 +- 35 files changed, 199 insertions(+), 16 deletions(-) diff --git a/client/app/components/queries/schema-browser.html b/client/app/components/queries/schema-browser.html index b7bd0e4442..2091596f00 100644 --- a/client/app/components/queries/schema-browser.html +++ b/client/app/components/queries/schema-browser.html @@ -9,7 +9,9 @@