Commit Graph

4582 Commits

Author SHA1 Message Date
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
fzzylogic c97a71b6b9 Make package.json cross platform (#8035)
* Fix: Chain var declaration and webpack invocation

* enh: Add cross-env to make package.json work cross-platform

* Fix: Update lock-file for new package cross-env

* Chores: Update lock-file for new package cross-env
2019-08-20 00:57:41 -07:00
Kartik Khare ae16e69ebf Adding support for filter box in annotations (#8057)
* Adding support for filter box in annotations

* Fixing tox lint errors

* fixing lint errors
2019-08-20 00:56:04 -07:00
Maxime Beauchemin 4e7ea3f3e2
Improve birth example dashboard (#8042)
* Improve birth example dashboard

* Fix tests

* pylint
2019-08-18 22:36:27 -07:00
Grace Guo 51bd34704c
[sql lab] persist tables list in localStorage (#8054)
* [sql lab] persist tables list in localStorage

* persist ediotor panel size setting
2019-08-16 14:12:35 -07:00
John Bodley 46f4da5fbe
[viz] Revert dropna logic for pivot tables (#8040) 2019-08-16 11:25:57 -07:00
Beto Dealmeida 478d0969a8
Add feature flag for Presto expand data (#8056)
* Add feature flag for Presto expand data

* Fix unit tests

* Fix black

* Revert temporary file change
2019-08-15 20:10:05 -07:00
michellethomas ef1d4a6aa1 Set disableErrorBoundary in SuperChart to fix chart error handling (#8052) 2019-08-15 14:42:03 -07:00
Maxime Beauchemin 5e0c91ef49
fix: onSave datasource raises React error (#8049)
* fix: datasource save raises React error

* add test
2019-08-15 14:13:18 -07:00
Ville Brofeldt 8773fdceb2 [bugfix] Fix deck_polygon metric bug and update examples chart (#8025)
* Fix deck_polygon bug and update examples chart

* Change js elevation to native ad-hoc metric

* Move scale from metric to native multiplier

* Remove redundant js_columns and change color scheme
2019-08-15 09:20:49 -07:00
Maxime Beauchemin ed8bb1b694
fix: issues #8041 - bubble support for complex metrics (#8044) 2019-08-14 09:27:18 -07:00
Maxime Beauchemin 40c21dc1d7
Disable flaky cypress test (#8039)
ref: https://travis-ci.org/mistercrunch/superset/jobs/571524160
```
  1) Dashboard top-level controls should allow dashboard level force refresh:
     CypressError: Timed out retrying: expected '<li>' to have class 'disabled'
      at Object.cypressErr (http://localhost:8081/__cypress/runner/cypress_runner.js:65283:11)
      at Object.throwErr (http://localhost:8081/__cypress/runner/cypress_runner.js:65248:18)
      at Object.throwErrByPath (http://localhost:8081/__cypress/runner/cypress_runner.js:65275:17)
      at retry (http://localhost:8081/__cypress/runner/cypress_runner.js:58816:16)
      at http://localhost:8081/__cypress/runner/cypress_runner.js:50924:18
      at tryCatcher (http://localhost:8081/__cypress/runner/cypress_runner.js:127195:23)
      at Promise._settlePromiseFromHandler (http://localhost:8081/__cypress/runner/cypress_runner.js:125213:31)
      at Promise._settlePromise (http://localhost:8081/__cypress/runner/cypress_runner.js:125270:18)
      at Promise._settlePromise0 (http://localhost:8081/__cypress/runner/cypress_runner.js:125315:10)
      at Promise._settlePromises (http://localhost:8081/__cypress/runner/cypress_runner.js:125390:18)
      at Async._drainQueue (http://localhost:8081/__cypress/runner/cypress_runner.js:122119:16)
      at Async._drainQueues (http://localhost:8081/__cypress/runner/cypress_runner.js:122129:10)
      at Async.drainQueues (http://localhost:8081/__cypress/runner/cypress_runner.js:122003:14)
      at <anonymous>
```
2019-08-14 07:44:55 -07:00
semantiDan a852eaaa59 Added WPSemantix to list of companies using Apache Superset in README.md file (#8045) 2019-08-14 17:28:03 +03:00
Grace Guo 613dcf5def
[fix] Allow dashboard viewer auto refresh dashboard (#8014) 2019-08-13 13:49:39 -07:00
serenajiang 17f0740692 Fix bug where lists in queries cannot contain multiple types (#8032)
* use set instead of sorted to check equality of lists

* run black
2019-08-13 23:06:44 +03:00
Kshira Saagar 075b5a5d33 Two more organisations using Superset - Zalora, GFG (#8026) 2019-08-12 22:37:11 -07:00
Erik Ritter 0754f294e9 [Dashboard] Hide slice titles when they're empty (#8018) 2019-08-12 21:55:46 -07:00