Commit Graph

4398 Commits

Author SHA1 Message Date
Garrett Bates
9d350aadf0 ignore formatting for <Select> (#8187) 2019-09-08 10:16:07 -07:00
Paul Vickers
22302e341f Bump flask-appbuilder to 2.1.13 (#8174)
* Bump flask-appbuilder to 2.1.12

To pick up this fix https://github.com/dpgaspar/Flask-AppBuilder/pull/1095 which addresses https://github.com/apache/incubator-superset/issues/7739

* Bump FAB again to 2.1.13
2019-09-08 09:58:59 -07:00
Ville Brofeldt
3250c5ac94
[bugfix] fix timegrain addon regression (#8165)
* Fix regression in time grain addons

* Revert privatization of time_grain_functions

* Fix test

* Rename variable

* Fix test

* Fix typing error

* Refactor and add tests

* Add TODO
2019-09-08 08:34:40 +02:00
John Bodley
9dfa0a3f8e
Update core.py (#8191) 2019-09-07 23:32:17 -07:00
serenajiang
be33934b83 [fix] retry stop_query on all exceptions (#8184) 2019-09-06 10:16:08 -07:00
Ville Brofeldt
15e623898d
Make orderby native sqla construct (#8180) 2019-09-06 13:05:17 +03:00
Ville Brofeldt
4e1e54b538
[bugfix] Correctly quote table and schema in select_star (#8181)
* Fix select_star table quoting bug

* Add unit test for fully qualified names in select_star

* Rename main_db to db

* Rename test function
2019-09-05 22:44:34 +03:00
klxiang
8f071e8f7e Update messages.json (#8179)
"Pop"这里应该翻译成"弹出",而不是"流行"。
2019-09-05 11:25:24 -07:00
ericandrewmeadows
ae0dc30c0a Fix to Werkzeug ProxyFix; expose ProxyFix configuration items (#8117)
* Fix to werkzeug proxy; expose additional configuration items

* Forced to all x-forwarded configurations ON; black done

* added comments related to x_port after testing

* Updated UPDATING.md

* Removed accidental notebook; added *.ipynb to gitignore

* Delete Untitled-checkpoint.ipynb
2019-09-04 10:21:13 -07:00
Maxime Beauchemin
650de93752
Bump cypress from 3.1.5 to 3.4.1 (#8158) 2019-09-03 23:56:50 -07:00
serenajiang
00257b9433 [sqllab] add retries for stop_query (#8139)
* [sqllab] add retries for stop_query

* use backoff for retries

* address PR comments

* import statement order
2019-09-03 16:37:42 -07:00
Erik Ritter
436261e703 [Codemod] Rename react unsafe lifecycles (#8143)
* [Codemod] Rename react unsafe lifecycles

* Fix lint errors

* [Codemod] Rename react unsafe lifecycles

* Fix lint errors
2019-09-03 14:13:58 -07:00
Maxime Beauchemin
ee24539bd2
chore: remove PY3 conditional logic (#8149) 2019-09-02 12:46:18 -07:00
Maxim Sukharev
522e8015cf Forward SIGTERM signal to gunicorn (#8156)
Currently docker entrypoint is a bash script.
`docker stop` command (or restart in kubernetes) sends SIGTERM to the
container but it isn't catched by gunicorn.
So gunicorn can't start graceful shutdown which may lead to killing
user's connection and also adds 10s (default value) delay for stopping
until docker sends SIGKILL.
Using `exec` replaces the shell with the process being opened and
signals are propagated correctly.

Ref: https://docs.docker.com/engine/reference/commandline/stop/
Ref: https://unix.stackexchange.com/questions/146756/forward-sigterm-to-child-in-bash
2019-09-02 12:43:03 -07:00
Craig Rueda
2abec1908e Adding explicit include for version_info.json (#8148) 2019-08-30 15:43:30 -07:00
Erik Ritter
96f21d3cb6 Revert "Fix tooltips not visible for NVD3 charts on Firefox (#7822) (#7929)" (#8147)
This reverts commit 6df2a713e4.
2019-08-30 15:25:37 -07:00
Erik Ritter
96eb51f0e1 Revert "Allow resizing width of SQL Lab left bar / editor (#8099)" (#8146)
This reverts commit ed3360b135.
2019-08-30 15:19:01 -07:00
Erik Ritter
1b031fc7d7 Revert "Fixed Histogram visualization bug. (#8077)" (#8145)
This reverts commit 7ac1a290eb.
2019-08-30 14:11:46 -07:00
ʈᵃᵢ
7f17ba7ee2 removes unused state values and redundant presence checks (#8130) 2019-08-29 21:29:34 -07:00
Ville Brofeldt
149d6344ac Add duration formatter for numeric data (#8136)
* Add duration formatter

* Remove sec and min formatters and add subMillisecond option
2019-08-29 21:29:08 -07:00
Krist Wongsuphasawat
b150b3d5e6
remove unused files (#8140) 2019-08-29 15:19:05 -07:00
Daniel Vaz Gaspar
6aa10dc016 [setup] use new python requires metadata key (#8135) 2019-08-28 10:12:46 -07:00
Craig Rueda
de6d963432 Moving towards a whitelist approach for MANIFEST.in (#8109)
* Moving towards a whitelist approach for MANIFEST.in when it comes to static resources

* Tuning static exclude

* Fix for fetching version string from package.json, which no longer exists

* Adding package.json fallback for unit tests
2019-08-27 14:51:35 -07:00
Rob DiCiuccio
7595d9e5fd [SQL Lab] Async query results serialization with MessagePack and PyArrow (#8069)
* Add support for msgpack results_backend serialization

* Serialize DataFrame with PyArrow rather than JSON

* Adjust dependencies, de-lint

* Add tests for (de)serialization methods

* Add MessagePack config info to Installation docs

* Enable msgpack/arrow serialization by default

* [Fix] Prevent msgpack serialization on synchronous queries

* Add type annotations
2019-08-27 14:23:40 -07:00
Krist Wongsuphasawat
56566c2645
feat: bump superset-ui dependencies to v0.12 and plugins to v0.11 (#8115)
* feat: bump superset-ui dependencies to v0.12 and plugins to v0.11

* fix: update transformProps

* fix: update hooks

* fix: pin lunar version

* fix: lint

* fix: revert table
2019-08-27 13:42:18 -07:00
Ville Brofeldt
1982b74af2 Add check for calls to cache_key_wrapper (#8128)
* Add check for calls to cache_key_wrapper to avoid unavoidable compilation of query

* Add fetch_values_predicate to check

* Only check relevant attributes

* Address nit
2019-08-27 13:36:05 -07:00
Dave Smith
6dc760a054 Add LogConfigurator, and add logging for CSV export (#8085)
* Add LogConfigurator, and add logging for CSV export

* tweak for PR feedback

* fix linter issue
2019-08-27 13:22:18 -07:00
Evan Rusackas
2085e897f5 adding spaces missing from string concatenations (#8126) 2019-08-27 10:37:40 -07:00
Marcus
b1269c31f7 removed database deps from reqs-dev.txt and typo. (#8111)
* removed database deps from reqs-dev.txt and typo.

* Revert requirements-dev.txt to limit scope
2019-08-26 16:13:58 -07:00
serenajiang
624449816f [logging] add query id to SQL Lab logs (#8104)
* [logging] add query id to logs

* add query_id to hive and presto logging
2019-08-26 10:35:18 -07:00
Erik Ritter
5d8da6aeae [Hive Engine Spec] Fix latest partition logic (#8098) 2019-08-26 10:29:25 -07:00
Beto Dealmeida
ed3360b135
Allow resizing width of SQL Lab left bar / editor (#8099)
* wip

* Finish PR

* Remove annoying snap

* Fix lint

* Fix js tests
2019-08-26 10:07:47 -07:00
kuckjwi
7ac1a290eb Fixed Histogram visualization bug. (#8077)
* Fix HistogramViz bug.

* Fix ci black error.
2019-08-24 20:52:38 +03:00
Erik Ritter
ee75d03df4 Fix cache set kwargs (#8106) 2019-08-23 16:54:37 -07:00
Erik Ritter
01aa17cb70 Fix sqla query cache keys function (#8105) 2019-08-23 14:14:38 -07:00
felixcodes
6ca3e347d2 refactor: separate vis-specific controls from centralized controls (#7569)
* Separate vis-specific controls from centralized controls

* Remove comment

* Update state's vizType when switching to a new visualization. This fixes the renderTrigger bug.

* Rename functions for better readability

* Fix lint issues

* Fix nits

* Fix vscode rename mistake
2019-08-23 13:41:35 -07:00
Maxime Beauchemin
610b35a01b
docs: remove unused release instruction (#8100)
Turns out since we use `git archive`, there's no need for `git clean`
which was pretty disruptive.
2019-08-23 09:03:55 -07:00
friendzis
fd119c187e Move Darwin-specific JS libs to optional (#8093) 2019-08-22 22:37:36 -07:00
serenajiang
e6956f84b4 [fix] checks for stopped queries (#8097) 2019-08-22 22:23:44 -07:00
Maxime Beauchemin
279307c602
fix: minor release/license related issues (#8087) 2019-08-22 18:16:12 -07:00
Maxime Beauchemin
763af85d04
CHANGELOG for 0.30...0.34 (#8089) 2019-08-22 18:15:49 -07:00
Krist Wongsuphasawat
0d76fc755c
feat: replace table and box plot vis with new plugins (#8083)
* add new chart plugins

* fix: pin aphrodite version

* fix: package

* fix: unit test dependencies

* fix: memory
2019-08-22 12:15:54 -07:00
Ville Brofeldt
fb51632e18
Add docstrings and typing to db_engine_specs and sql_parse (#8058)
* Add typing to db_engine_specs

* Add more type annotations and docstrings

* Add docstrings and typing to sql_parse and db_engine_specs

* Refine select_star

* Fix execute and add more docstrings

* Revert kwargs change from execute

* Remove redundant or

* Align view and table getter schema types

* Fix return type of latest_partition

* Remove some typing from presto

* Improve docstring for __extract_from_token
2019-08-22 06:29:32 +03:00
Grace Guo
40776bd547
[Feature] Dashboard filter indicators (#7908)
* dashboard filter indicators

* add/fix unit tests
2019-08-21 17:34:08 -07:00
aspedrosa
0fd7364503 Remove gevent installation as a separate layer (#8078) 2019-08-21 11:07:39 -07:00
serenajiang
638fbb1a5c fix: handle case where result exists but corresponding query cannot be found (#8037)
* fix: handle case where result exists but query cannot be found

* changed error code to 404 for query not found
2019-08-20 18:30:33 -07:00
Dave Smith
995b96fc52 remove idna req from setup.py (#8067) 2019-08-20 18:04:59 -07:00
Beto Dealmeida
aae9b56232 Move more Presto nested types behind feature flag (#8075)
* Move more stuff behind ff

* Fix unit tests

* Fix more tests

* Fix lint
2019-08-20 16:10:55 -07:00
Maxime Beauchemin
d872511e2b
bump a set of test-related JS libs (#8051)
* bump a set of test-related JS libs

Mostly upgrading jest as I was trying to tackle issues related to
wrong source-maps reporting in jest. This addresses it

* Bumping more things

* lint

* using core-js/stable

* pointing to the right place
2019-08-20 15:32:50 -07:00
Grace Guo
319c1df120
[Explore view] Fix extra data fetch when user clicks Run Query (#8070) 2019-08-20 11:48:15 -07:00