Commit Graph

4582 Commits

Author SHA1 Message Date
Craig Rueda e490414484 Flask App factory PR #1 (#8418)
* First cut at app factory

* Setting things back to master

* Working with new FLASK_APP

* Still need to refactor Celery

* CLI mostly working

* Working on unit tests

* Moving cli stuff around a bit

* Removing get in config

* Defaulting test config

* Adding flask-testing

* flask-testing casing

* resultsbackend property bug

* Fixing up cli

* Quick fix for KV api

* Working on save slice

* Fixed core_tests

* Fixed utils_tests

* Most tests working - still need to dig into remaining app_context issue in tests

* All tests passing locally - need to update code comments

* Fixing dashboard tests again

* Blacking

* Sorting imports

* linting

* removing envvar mangling

* blacking

* Fixing unit tests

* isorting

* licensing

* fixing mysql tests

* fixing cypress?

* fixing .flaskenv

* fixing test app_ctx

* fixing cypress

* moving manifest processor around

* moving results backend manager around

* Cleaning up __init__ a bit more

* Addressing PR comments

* Addressing PR comments

* Blacking

* Fixes for running celery worker

* Tuning isort

* Blacking
2019-11-20 15:47:06 +00:00
ʈᵃᵢ 300c4ecb0f [SECURITY] bump packages with security vulnerabilities (#8573)
* bump packages with security velnerabilities

* bring back cypress

* remove cypress
2019-11-19 23:34:13 -08:00
ʈᵃᵢ 9d36fa348f Move from MVC FAB menu to Superset React menu (#8289)
* adds react based menu for welcome view

* bump fab

* better logic in common_bootstrap_payload

* split up files

* fix spacing and module scope styles

* lint

* render correct template for welcome
2019-11-19 22:56:27 -08:00
ʈᵃᵢ 54d9154a14 increase z-index on filter box to fix bleeding of filter indicator (#8579)
* increase z-index on filter box to fix bleeding of filter indicator

* convert to less and use variables

* add comment and port value to variable
2019-11-19 22:55:03 -08:00
Evan Rusackas 03d5a82137 Using Prettier for CSS (#8606)
* Adding clean-css npm script, and calling it in the lint-fix script for good measure.

* resulting cleanup
2019-11-19 22:33:38 -08:00
Evan Rusackas ac665d360c showing version and SHA (subtly) in user menu. (#8562)
* showing version and SHA (subtly) in user menu.

* not using VERSION_INFO_FILE after all.

* cleanup... excess linebraks...

* Just trying to make you happy, Black!

* adding some spaces before opening brackets for CSS selectors

* setting version_sha from appbuilder.app.config['VERSION_SHA']
2019-11-19 21:35:18 -08:00
Will Barrett d70e0fc359 Fix for BigQuery connection checks and CSV uploads (#8511)
* Fix for BigQuery connection checks and CSV uploads

* Don't assume encrypted_extra will be populated

* Fix undefined method error

* Refactor to avoid circular import strangeness
2019-11-19 14:50:47 -08:00
Beto Dealmeida 3b97ae3b9d
Set owner when creating SQL Lab view (#8597)
* Set owner when creating SQL Lab view

* Add unit test

* Small fix
2019-11-19 10:48:42 -08:00
Daniel Vaz Gaspar 3b13fb4143
[docs] Improve and automate apache source releases (#8584) 2019-11-19 15:44:38 +00:00
ashun 71c5c0f366 fix for issue#8269 (#8270) 2019-11-19 07:13:47 -08:00
Caahlo 07058c5a12 add Liechtenstein to country selection (#8605)
add Liechtenstein to country selection and document its municipalities as regions
2019-11-19 07:06:17 -08:00
Grace Guo f42aae843c
[dashboard scoped filter] Reduce calls to expensive safeStringify (#8595)
* [dashboard scoped filter] Reduce calls to expensive safeStringify

* better handle empty or null scope settings
2019-11-18 20:49:28 -08:00
Erik Ritter 7d14b71a93
[lint] Add lint rule enforcing React Fragment shorthand (#8585) 2019-11-18 16:17:12 -08:00
Grace Guo ff6ab10893
[Feature] Dashboard scoped filter (#8590)
* [WIP][dashboard scoped filter] part 1: scope selector modal (#8557)

* filter scope selector modal

* add single-field-edit in multi-edit mode switch

* fix code review comments (round 1)

* refactory after design review

* fix a few props initial value

* [WIP][dashboard scoped filter] part 2: add algorithm to convert checked ids to scope object (#8564)

* convert ids to scope object

* use lodash helpers to make code readable

* [WIP][dashboard scoped filter] part 3: merge filter scope settings into dashboard redux state (#8522)

* merge filter scope settings into dashboard redux state

* fix/add unit tests

* minor bug fixes

* fix save filter Scopes behavior

* resolve review comments

* fix save filter scope settings

* minor comments

* [dashboard scoped filter] Improve scrollbar inside modal (#8553)

* improve scroll inside modal

* make left pane and right pane scroll separately

* fix review comments

* force show filter_box as unchecked (#8587)
2019-11-18 13:02:25 -08:00
Caahlo c87a140734 add Switzerland to country selection (#8592)
add Switzerland to country selection and document Swiss cantons as regions
2019-11-18 10:13:53 -08:00
Wu Junhao 1ee08c991f adding bilibili in readme (#8591) 2019-11-18 17:16:12 +02:00
Evan Rusackas 3d0c0f5028 [css] adding spaces before opening curlies. (#8572)
* adding spaces before opening curlies.

* adding stylelint config to catch these brackets

* moving stylelint rules to package.json
2019-11-15 16:35:48 -08:00
Beto Dealmeida 9c82ff8b96
Fix async queries with SQLLAB_BACKEND_PERSISTENCE (#8586) 2019-11-15 10:34:56 -08:00
Rob DiCiuccio fc12e53ff5 Bump pyarrow to 0.15.1 due to CVE (#8583) 2019-11-15 09:08:23 -08:00
Daniel Vaz Gaspar 4290f79640
[docs] Improve tests for an Apache release candidate (#8570)
* [docs] Improve tests for an Apache release candidate

* [docs] Fix phrase
2019-11-15 13:44:07 +00:00
Daniel Vaz Gaspar efb44ba59d
[druid] Fix, pydruid forced dependency (#8566)
* [druid] Fix, forced pydruid dependency

* [druid] Fix, more type annotation that force pydruid dependency
2019-11-15 09:25:23 +00:00
Beto Dealmeida 71ac788b20
Fix error when templateParams is undefined (#8581) 2019-11-14 20:22:06 -08:00
Conglei dc42015e69 feat: bump superset ui table version (#8582) 2019-11-14 17:13:56 -08:00
Beto Dealmeida 9044f210ee
Do not autorun query on tab duplicate (#8577)
* Pass autorun argument to cloneQueryToNewTab

* Accept autorun argument

* Fix unit test
2019-11-14 17:08:03 -08:00
Beto Dealmeida 26c55bd57a
Copy template params when duplicating query (#8580) 2019-11-14 17:07:30 -08:00
Beto Dealmeida 2f77c9f33e
Math.max(...array) considered harmful (#8575)
* Do not use Math.max

* Small fix
2019-11-14 17:07:18 -08:00
Beto Dealmeida 78f41b38e1
Fix more places where feature flags are serialized (#8567) 2019-11-14 10:01:57 -08:00
Beto Dealmeida d66bc5ad90
SIP-23: Persist SQL Lab state in the backend (#8060)
* Squash all commits from VIZ-689

* Fix javascript

* Fix black

* WIP fixing javascript

* Add feature flag SQLLAB_BACKEND_PERSISTENCE

* Use feature flag

* Small fix

* Fix lint

* Fix setQueryEditorSql

* Improve unit tests

* Add unit tests for backend sync

* Rename results to description in table_schema

* Add integration tests

* Fix black

* Migrate query history

* Handle no results backend

* Small improvement

* Address comments

* Store SQL directly instead of reference to query

* Small fixes

* Fix clone tab

* Fix remove query

* Cascade delete

* Cascade deletes

* Fix tab closing

* Small fixes

* Small fix

* Fix error when deleting tab

* Catch 404 when tab is deleted

* Remove tables from state on tab close

* Add index, autoincrement and cascade

* Prevent duplicate table schemas

* Fix mapStateToProps

* Fix lint

* Fix head

* Fix javascript

* Fix mypy

* Fix isort

* Fix javascript

* Fix merge

* Fix heads

* Fix heads

* Fix displayLimit

* Recreate migration script trying to fix heads

* Fix heads
2019-11-14 09:44:57 -08:00
ʈᵃᵢ 59bc220602 bump legacy-preset-chart-nvd3 to 0.11.5 (#8558) 2019-11-13 12:18:34 -08:00
Conglei e14ca1a423 feat: switch to new table (#8560) 2019-11-13 12:18:03 -08:00
Maxime Beauchemin 2b53ace8a4
docs: remove Gitter link from README (#8549) 2019-11-13 11:19:05 -08:00
Erik Ritter 1a5c2573b7
[Dashboard Import] Log error on dashboard import failure (#8550) 2019-11-13 09:41:48 -08:00
Ville Brofeldt 90275fe991
Add convert_dttm method to SnowflakeEngineSpec (#8551) 2019-11-13 11:13:49 +02:00
John Bodley 7bfa24d0da
[fix] Re-cleanup legacy filters (#8523) 2019-11-12 12:29:00 -08:00
Beto Dealmeida a58b3920db
Encode feature flags to JSON pessimistically (#8529)
* Encode feature flags to JSON pessimistically

* Add unit test

* Remove old imports
2019-11-12 11:10:36 -08:00
Evan Rusackas 1b3e40feac Clickable checkbox labels (#8534)
* passing onClick prop to header with the existing onChange method.

* basic test checking that label click fires the onChange method.

* cleaning up stuff caught by linting.
2019-11-12 10:22:17 -08:00
Erik Ritter a867d41d2a Upgrade superset-ui/time-format (#8541) 2019-11-12 10:22:08 -08:00
Daniel Vaz Gaspar b7b655e180 [docs] 0.35.0 CHANGELOG (#8547)
* [docs] Update CHANGELOG with 0.35.0

* [docs] Fix, github md problem
2019-11-12 10:21:56 -08:00
axuew 763f59fc58 Add support for database engine SAP Hana (#8411)
* Add support for database engine SAP Hana

* Support hana services

Increase time, minute, and second

* Fix hana return string

* Fix formatting errors
2019-11-12 08:42:44 +02:00
Paul Vickers 62476c5901 Allow customization of documentation icon and text (#8507)
* Allow customization of documentation icon and text

* Set icon width to 100%

* Use double quotes for strings
2019-11-11 17:35:19 -08:00
ʈᵃᵢ 6bce4f9877 fab 2.2.0 (#8517) 2019-11-11 17:34:08 -08:00
John Bodley 64de9aa056
[docs] Updating slice parameter documentation. (#8535)
* Update CONTRIBUTING.md

* Update CONTRIBUTING.md
2019-11-10 11:31:11 -08:00
Daniel Vaz Gaspar 650c848243
[cli] Fix, import datasources exported by UI (#8477)
* [cli] Fix, import datasources exported by UI
2019-11-10 16:29:51 +00:00
francishemingway 5ed2190ebd [docs] User tutorial (#8459)
* added user tutorial and rearranged docs hierarchy

* added license header, renamed admin tutorial file

* fixed image url issue

* Fix spelling

* Tweaks to text based on feedback

* guilabel and menu test

* added guilabel and upload csv section

* tidy up of rst formatting
2019-11-08 15:45:06 -08:00
John Bodley c4c01d601c
[docs] Adding Slice parameter documentation (#8531)
* [CONTRIBUTING.md] Adding Slice parameter documentation

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md
2019-11-08 14:19:22 -08:00
Ville Brofeldt 49ea232c3a
[fix] Improve csv upload functionality (#8457)
* [fix] csv upload when table metadata present

* Remove table from hive spec

* Move upload before table metadata creation

* Refine upload logic, dd unit tests and fix translations

* Use ALLOWED_EXTENSIONS from config

* Address review comments

* Fix error message grammar

* Add return type to hive csv upload and replace first with one_or_none
2019-11-07 20:03:42 +02:00
Ville Brofeldt 397e1e3d40
Replace hardcoded default colors with defaults in setupColors.js (#8510) 2019-11-07 20:01:59 +02:00
Juliette Tisseyre ec476fc67e Default page: remove title attribute to fall back on appbuilder.app_name (#8427) 2019-11-06 13:10:39 -08:00
John Bodley 1e3d833b02
[sip-15] Fixing time range endpoints from dashboards (#8513) 2019-11-06 09:15:58 -08:00
Conglei d78e59b75c revert tablevis (#8515) 2019-11-05 23:08:44 -08:00