From ce970a051ed4dd23fd6d2c51657706eea1245834 Mon Sep 17 00:00:00 2001 From: Allen Short Date: Tue, 8 Nov 2016 16:15:35 -0600 Subject: [PATCH] Enable documentation links and versions of data sources (re #6). Refs #537, #553. Co-authored-by: Marina Samuel Co-authored-by: Allen Short --- client/app/assets/less/redash/query.less | 2 + client/app/pages/data-sources/list.html | 2 +- client/app/pages/queries/query.html | 4 + redash/handlers/api.py | 2 +- redash/models.py | 2 + redash/query_runner/__init__.py | 56 +++++----- redash/query_runner/big_query.py | 82 ++++++++------- redash/query_runner/cass.py | 75 ++++++------- redash/query_runner/dynamodb_sql.py | 39 +++---- redash/query_runner/elasticsearch.py | 41 ++++---- redash/query_runner/google_spreadsheets.py | 26 ++--- redash/query_runner/graphite.py | 2 +- redash/query_runner/hive_ds.py | 41 ++++---- redash/query_runner/impala_ds.py | 67 ++++++------ redash/query_runner/influx_db.py | 23 ++-- redash/query_runner/mongodb.py | 43 ++++---- redash/query_runner/mssql.py | 73 ++++++------- redash/query_runner/mysql.py | 57 +++++----- redash/query_runner/oracle.py | 50 ++++----- redash/query_runner/pg.py | 117 +++++++++++---------- redash/query_runner/presto.py | 47 +++++---- redash/query_runner/python.py | 32 +++--- redash/query_runner/script.py | 34 +++--- redash/query_runner/sqlite.py | 25 ++--- redash/query_runner/treasuredata.py | 53 +++++----- redash/query_runner/url.py | 1 - redash/query_runner/vertica.py | 60 +++++------ requirements.txt | 2 +- tests/handlers/test_data_sources.py | 7 +- 29 files changed, 558 insertions(+), 507 deletions(-) diff --git a/client/app/assets/less/redash/query.less b/client/app/assets/less/redash/query.less index 30231788a3..c689f05b05 100644 --- a/client/app/assets/less/redash/query.less +++ b/client/app/assets/less/redash/query.less @@ -458,6 +458,7 @@ a.label-tag { .datasource-small { visibility: hidden; + display: none !important; } .query-fullscreen .query-metadata__mobile { @@ -576,6 +577,7 @@ nav .rg-bottom { .datasource-small { visibility: visible; + display: inline-block !important; } .query-fullscreen { diff --git a/client/app/pages/data-sources/list.html b/client/app/pages/data-sources/list.html index 56af90e071..fd23dfc516 100644 --- a/client/app/pages/data-sources/list.html +++ b/client/app/pages/data-sources/list.html @@ -9,7 +9,7 @@ diff --git a/client/app/pages/queries/query.html b/client/app/pages/queries/query.html index 4ddcd01333..ba44ef1e96 100644 --- a/client/app/pages/queries/query.html +++ b/client/app/pages/queries/query.html @@ -84,6 +84,8 @@

{{ds.name}} + +
@@ -168,6 +170,8 @@

+ +