Maxime Beauchemin
10773f96a7
URL Params macro ( #2537 )
2017-04-05 10:45:32 -07:00
Maxime Beauchemin
122891c29b
[sql lab] allow users to save their queries ( #2528 )
...
* Allow users to save their queries
Fixing tests .
* Adding placeholder for Query Description
* initJQueryCSRF -> initJQueryAjaxCSRF
2017-04-04 20:15:19 -07:00
Alanna Scott
d93b1fc686
[sql-lab] make query history scrollable ( #2499 )
...
* make query history scrollable
* not around results
2017-04-04 15:46:11 -07:00
Maxime Beauchemin
6566377740
[sql lab] fix table dropdown with large schema make UI unresponsive ( #2547 )
...
Indexing was done on render, moving to doing it only when the data
changes.
2017-04-04 12:19:44 -07:00
Alanna Scott
dcc6f2a18f
serve roboto font locally ( #2519 )
...
* serve roboto locally
* add trailing comma
* fix long line for linter
2017-04-03 13:05:13 -07:00
Maxime Beauchemin
513a090cdc
[sql lab] address lingering spinner in schema select ( #2512 )
2017-03-31 08:27:48 -07:00
Maxime Beauchemin
66cc546a30
[hotfix] fixing the (one js lint err in the) build
2017-03-31 07:52:26 -07:00
Maxime Beauchemin
6f68ddb505
Adding to polling states
2017-03-29 19:13:37 +00:00
Maxime Beauchemin
5c441f4ddb
[hotfix] queries trigger polling ( #2517 )
2017-03-29 11:58:08 -07:00
Alanna Scott
dd7b4b8310
Revert "[sql-lab] revert react-virtualized-select ( #2489 )" ( #2491 )
...
This reverts commit 7eafbabe65 .
2017-03-27 14:52:10 -07:00
Alanna Scott
93551a65b8
only fetch tables if we have a schema, otherwise reset options. ( #2490 )
2017-03-27 14:38:12 -07:00
Alanna Scott
7eafbabe65
[sql-lab] revert react-virtualized-select ( #2489 )
...
* revert react-virtualized-select
* add space between selects
* Label is not needed
2017-03-27 13:50:10 -07:00
Alanna Scott
43dd948476
[sql-lab] performance updates - make ui more responsive ( #2469 )
...
* remove network status feature
* only fetch queries if there are started or running queries
* don't use local storage
* remove last network status from actions
* don't remove support for local storage
* address pr comments and linting
* use .some rather than .forEach
2017-03-27 12:46:36 -07:00
Maxime Beauchemin
75e7f2d22c
[hotfix] bumping QUERY_UPDATE_FREQ from 1000 to 2000ms
2017-03-27 11:09:31 -07:00
Alanna Scott
22522fc05f
[sql-lab] improve table select performance ( #2457 )
...
* use fast filter for tables select
* react-virtualized needs this package, throws error otherwise...
* continue to use async select and this.getTableNamesBySubStr when a schema is not selected
* import styles in same place as react-select css import
2017-03-23 14:25:13 -07:00
Alanna Scott
652e572b56
[sql-lab] make results table scroll in static container ( #2426 )
...
* only scroll result set horizontally
* only scroll results table, keep rest of ui static
* use hard coded values
* fix linting
2017-03-21 18:30:53 -07:00
Bogdan
6160a3fdff
Implement stop query functionality. ( #2387 )
...
* Implement stop query functionality.
* Address comments
2017-03-13 13:54:38 -07:00
Maxime Beauchemin
492df94b2a
[sqllab] reserved words should be upper case ( #2316 )
2017-03-03 14:55:58 -08:00
Bogdan
cad392eb76
Fetch schemas separately. ( #2227 )
2017-02-23 14:02:40 -08:00
Bogdan
dc05be36a6
Check if the query is in state first. ( #2226 )
2017-02-22 16:26:17 -08:00
vera-liu
aff524d843
**Allow user to put dbname in url ( #2209 )
...
**Parse dbid from url to integer
2017-02-22 14:48:14 -08:00
vera-liu
527a8af060
Return original state for query if query was stopped ( #2164 )
2017-02-14 10:28:25 -08:00
vera-liu
2f05efaf12
Set default time range of query search to the past month ( #2162 )
2017-02-13 17:16:09 -08:00
vera-liu
83ef8a2e12
Add parsing for nested json objects in resultset ( #2163 )
2017-02-13 17:15:41 -08:00
Bogdan
c564881867
Implement caching and dynamic data fetching. ( #1466 )
...
* Rename rv => o in the decorator.
* Address comments.
* Permissions cleanup: remove none and duplicates. (#1967 )
* Updates
* Rename var and dropdown text
* Cleanup
* Resolve comments.
* Add user to the perm check.
2017-02-13 16:14:55 -08:00
Alanna Scott
2ace73e9a1
[sql-lab] make datasource name in visualize flow more descriptive ( #2103 )
...
* make data source name more descriptive
* add user name to datasource name as well
2017-02-09 12:11:25 -08:00
Bogdan
898d80ba38
Viz the compiled query rather than user input. ( #2086 )
2017-01-31 19:56:59 -08:00
vera-liu
27aeac6859
Remove fetch results button for async queries ( #2084 )
2017-01-31 17:25:06 -08:00
vera-liu
3a5a927dc6
check if tempTable exists for ctas queries ( #2073 )
2017-01-30 17:08:52 -08:00
vera-liu
2d419e4253
Return alert instead of fetch button when async results has no data ( #2072 )
2017-01-30 11:03:37 -08:00
vera-liu
544211f5ec
Revert "Display no data alert when async result has zero rows" ( #2069 )
2017-01-27 15:31:28 -08:00
vera-liu
4a8cd04de6
Display no data when async result has zero rows ( #2055 )
2017-01-27 11:06:54 -08:00
vera-liu
85806624db
Use a key-value store model for sharing long queries ( #1951 )
...
* Add KeyValue model for storing id-value pairs
use it for storing shared queries
* Change string to text and added test
* Put getQueryLink in one place
* Changed migration down version
* Changes based on comments
* Update bcf3126872fc_add_keyvalue.py
2017-01-27 10:20:24 -08:00
vera-liu
a385ee9e97
Use POST in sqllab_viz instead of url params to avoid error with long queries ( #1933 )
...
* Use POST in sqllab_viz instead of url params to avoid error with long queries
* Delete error handling
* Fix returning statement
2017-01-11 11:58:16 -08:00
vera-liu
f0917c62f2
Add a Async Select that fetches options from given endpoint ( #1909 )
...
* Add a Async Select that fetches options from given endpoint
* update it statement
2017-01-11 10:31:30 -08:00
vera-liu
9bc7ad9cd5
Do not use persistState for explorev2 ( #1894 )
...
* Do not use persistState for explorev2
* Change enhancerWithPersistState to enhancer and function name to initEnhancer
2017-01-03 20:23:43 -08:00
Alanna Scott
242869db3a
[sql lab] only show single run query button ( #1858 )
...
* only show single run query button, allow async if possible
* only pass the needed props, rather than entire objects to the component
* add simple test
* fix linting
2017-01-03 17:20:30 -08:00
Maxime Beauchemin
16731056ed
[sqllab] async queries - better error handling ( #1853 )
2016-12-19 22:33:55 -08:00
vera-liu
e06a0cd89b
Add force_ctas_schema to query model when enabled ( #1825 )
...
* Add force_ctas_schema to query model when enabled
* Add schema to temp_table_name
* Remove extra arg in create_table_as
2016-12-15 13:19:54 -08:00
vera-liu
e1e20b8757
Sort searched queries by recency ( #1735 )
...
* Sort searched queries by recency
* Fixed sqllab tests
* Add one more tr to QueryTable spec for pagination
* Change desc to asc as we reverse queries in component
2016-12-14 10:14:54 -08:00
vera-liu
699602d1c5
Add tooltips to RunAsync and CTAS button ( #1792 )
...
* Add tooltips to RunAsync and CTAS button
* Use button from components
* Phrasing
2016-12-12 10:13:01 -08:00
vera-liu
8ef730b5fe
Added timer to explore v2 and share it with sqllab ( #1802 )
...
* Added timer to explore v2 and share it with sqllab
* Fixed js tests
* Add timer to initial load
* Make timer smaller
* nits
2016-12-09 13:39:53 -08:00
vera-liu
866cfe5279
Add schema name to output column in query history ( #1790 )
...
* Add schema name to output column in query history
* Replace line break with dot between schema and table name
2016-12-09 11:03:31 -08:00
Maxime Beauchemin
aeda5bd260
[sqllab] config item for SQLLAB_DEFAULT_DBID ( #1793 )
2016-12-07 21:01:02 -08:00
vera-liu
74edb936a5
[WIP] Add http to copied url and move function to componentWillReceiveProps ( #1780 )
...
* Add http to copied url and move function to componentWillReceiveProps
* Added getText() to CopyToClipbaord to enable ajax calls for getting copy text
* Set ajax call to synchronous (document.execCommand only works in synchronous mode
2016-12-06 17:49:41 -08:00
vera-liu
eb0655cf85
[sqllab] Fixed js error when results are not available ( #1715 )
...
* Fixed js error when results are not available
* Flush data and query in results when running new query, keeping columns
* add exception for columns
* Move setState from componentWillMount to componentWillReceiveProps
* Nit
2016-12-05 13:36:18 -08:00
vera-liu
d8864bc92b
Enable overwrite sql in QueryHistory ( #1731 )
2016-12-05 11:34:42 -08:00
vera-liu
89fc9d7c80
Make entire menuitem clickable for copy query ( #1747 )
2016-12-05 10:02:23 -08:00
Maxime Beauchemin
c4e943a24f
[sqllab] making 'click to retrieve results' a button ( #1737 )
2016-12-03 20:09:09 -08:00
vera-liu
32fc0ff6d0
[Bugfix] autocomplete in sqleditor doesnot use newly loaded table columns ( #1712 )
2016-11-30 09:09:35 -08:00