Ville Brofeldt
280ecab0e6
chore: remove redundant adodbapi warning ( #19557 )
...
(cherry picked from commit 0d331f5bd8 )
2022-04-08 16:41:33 +03:00
Ville Brofeldt
5ca126698a
fix(dataset): handle missing python_type gracefully ( #19553 )
...
* fix(dataset): handle missing python_type gracefully
* refactor TEMPORAL_TYPES
(cherry picked from commit d9343a4639 )
2022-04-08 16:41:33 +03:00
Ville Brofeldt
44eb81e35f
fix(sqla): apply jinja to metrics ( #19565 )
...
(cherry picked from commit 34b55765c4 )
2022-04-08 16:41:33 +03:00
Ville Brofeldt
c4d24a09a8
fix(sqllab): null database with backend persistence ( #19548 )
...
(cherry picked from commit 2d81c4c79f )
2022-04-08 16:41:32 +03:00
Ville Brofeldt
34e3119c40
fix(migrations): reorder skipped 1.4 migrations ( #19543 )
...
(cherry picked from commit e1ef2baad7 )
2022-04-08 16:41:32 +03:00
Ville Brofeldt
2001fb5037
add noop endpoint migration
2022-04-04 11:20:29 +03:00
Yongjie Zhao
3ff9cdeb65
fix: can't sync temporal flag on virtual table ( #19366 )
...
(cherry picked from commit d954c3df86 )
2022-04-04 11:00:48 +03:00
Ville Brofeldt
3c627bdc61
fix: request samples with default row limit ( #19456 )
...
* fix: request samples with default row limit
* lodashLint
* fix cypress test
(cherry picked from commit d684ad073d )
2022-04-04 11:00:47 +03:00
Beto Dealmeida
840be9972f
feat: improve adhoc SQL validation ( #19454 )
...
* feat: improve adhoc SQL validation
* Small changes
* Add more unit tests
(cherry picked from commit 6828624f61 )
2022-04-04 11:00:47 +03:00
James Turton
e4cbbdc653
fix(drill): specify an SA URL parm of impersonation_target for drill+sadrill ( #19252 )
...
* Update drill+sadrill to specify an SA URL parm of "impersonation_target".
Sqlalchemy-drill is being updated to support impersonation with the
drill+sadrill driver, where previously it did not. The way that callers
should specify impersonation matches that for the drill+jdbc driver in that
a SA URL parameter of impersonation_target should be set to the username
of the user to be impersonated, while the stadard SA username and password
should be those of the proxy user.
* Remove lint.
* Address review comments.
* Use idiomatic pytest to test for a raised exception.
* Fix import statement order in drill.py.
(cherry picked from commit 85e330e94b )
2022-04-04 11:00:46 +03:00
Yongjie Zhao
3c09690ed2
fix: can't save dataset modal ( #19452 )
...
(cherry picked from commit 6b136c2bc9 )
2022-04-04 11:00:45 +03:00
David Aaron Suddjian
795ed3c719
feat: Embedded dashboard configuration ( #19364 )
...
* embedded dashboard model
* embedded dashboard endpoints
* DRY up using the with_dashboard decorator elsewhere
* wip
* check feature flags and permissions
* wip
* sdk
* urls
* dao option for id column
* got it working
* Update superset/embedded/view.py
* use the curator check
* put back old endpoint, for now
* allow access by either embedded.uuid or dashboard.id
* keep the old endpoint around, for the time being
* openapi
* lint
* lint
* lint
* test stuff
* lint, test
* typo
* Update superset-frontend/src/embedded/index.tsx
* Update superset-frontend/src/embedded/index.tsx
* fix tests
* bump sdk
(cherry picked from commit 8e29ec5a66 )
2022-04-04 11:00:45 +03:00
Daniel Vaz Gaspar
bfa203aee0
fix: missing init on importexport pkg ( #19435 )
...
(cherry picked from commit 2451937097 )
2022-04-04 11:00:44 +03:00
Daniel Vaz Gaspar
7aba89c486
fix: add missing init on python pkg key_value ( #19428 )
...
* fix: add missing init on python pkg key_value
* fix lint issues
* fix lint issues
(cherry picked from commit fa35109bf2 )
2022-04-04 11:00:44 +03:00
Beto Dealmeida
038d114b07
perf: improve perf in SIP-68 migration ( #19416 )
...
* chore: improve perf in SIP-68 migration
* Small fixes
* Create tables referenced in SQL
* Update logic in SqlaTable as well
* Fix unit tests
(cherry picked from commit 63b5e2e4fa )
2022-04-04 11:00:43 +03:00
Ville Brofeldt
fb929ab649
run black on remaining files
2022-04-03 19:15:25 +03:00
Ville Brofeldt
a70f4dc52f
chore: upgrade black ( #19410 )
2022-04-03 19:13:17 +03:00
Beto Dealmeida
cccec50454
feat: disable edits on external assets ( #19344 )
...
* feat: disable edits on external assets
* Update tests
(cherry picked from commit d304849b46 )
2022-04-03 19:04:00 +03:00
Yongjie Zhao
5f2ffb3ba4
feat: linear imputation in Resample ( #19393 )
...
(cherry picked from commit a39dd4493e )
2022-04-03 19:03:59 +03:00
Ville Brofeldt
dead7c253c
fix(caching): support metastore cache for non-required caches ( #19369 )
...
* fix(caching): support metastore cache for non-required caches
* lint
(cherry picked from commit 02308a6f78 )
2022-04-03 19:03:58 +03:00
Geido
549b475a94
Fix NoAuthorizationError ( #19355 )
...
(cherry picked from commit a2bb91243a )
2022-04-03 19:03:56 +03:00
Ville Brofeldt
a6a2def6d3
feat: introduce hashids permalink keys ( #19324 )
...
* feat: introduce hashids permalink keys
* implement dashboard permalinks
* remove shorturl notice from UPDATING.md
* lint
* fix test
* introduce KeyValueResource
* make filterState optional
* fix test
* fix resource names
(cherry picked from commit f4b71abb22 )
2022-04-03 19:03:56 +03:00
Beto Dealmeida
d9377559f6
feat: import external management columns ( #19315 )
...
* feat: import flags
* Add tests
(cherry picked from commit c7f9060a2f )
2022-04-03 19:03:55 +03:00
Ville Brofeldt
a591eccfc2
docs: update lock + general cleanup ( #19350 )
...
* docs: update lock file
* remove redundant npm lock file
* add missing peer deps
* fix TODO and bump antd
* fix API spec script
(cherry picked from commit 3313530f4d )
2022-04-03 19:03:55 +03:00
Richard Whaling
89b7b3784a
feat: add duckdb as DataSource - Fixes #14563 ( #19317 )
...
* + duckdb support
needs the forked version of [duckdb-engine](https://github.com/alitrack/duckdb_engine )
* Update duckdb.py
update _time_grain_expressions
* removed superfluous get_all_datasource_names def in duckdb engine spec
* added exception handling for duckdb single-threaded RuntimeError
* fixed linter blips and other stylistic cleanup in duckdb.py
* one last round of linter tweaks in test_connection.py for duckdb support
Co-authored-by: Steven Lee <admin@alitrack.com >
Co-authored-by: Richard Whaling <richardwhaling@Richards-MacBook-Pro.local >
(cherry picked from commit 202e34a259 )
2022-04-03 19:03:55 +03:00
Beto Dealmeida
3b0b60c57f
feat: external management flags in CRUD ( #19318 )
...
(cherry picked from commit 9766726b26 )
2022-04-03 19:03:55 +03:00
Yongjie Zhao
9bc76337cf
feat(advanced analysis): support MultiIndex column in post processing stage ( #19116 )
2022-04-03 19:00:01 +03:00
Ville Brofeldt
f0630a6ea7
fix(cache): only warn about fallback cache for non-debug mode ( #19305 )
...
(cherry picked from commit 7ca10fb770 )
2022-04-03 18:57:31 +03:00
Beto Dealmeida
d4223d7dc4
feat: API for asset sync ( #19220 )
...
* feat: API for asset sync
* Add unit tests.
* Improve tests
* Move files
* Add more tests
(cherry picked from commit b05e7dbf2a )
2022-04-03 18:57:30 +03:00
David Aaron Suddjian
55aac5a3cb
allow overriding the guest token PyJWT instance ( #19293 )
...
(cherry picked from commit f9feb1b7f3 )
2022-04-03 14:10:50 +03:00
Ville Brofeldt
f3172010d5
feat(key-value): add superset metastore cache ( #19232 )
...
(cherry picked from commit 72b9a7fa5b )
2022-04-03 14:10:49 +03:00
John Bodley
81a1abfab4
fix(presto/trino): Add TIME/TIMESTAMP WITH TIME ZONE ( #19263 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com >
(cherry picked from commit 82a6811e7e )
2022-04-03 14:10:48 +03:00
Elizabeth Thompson
910679aad5
fix dataset update table ( #19269 )
...
(cherry picked from commit 88029e21b6 )
2022-04-03 14:10:48 +03:00
PApostol
70facad1b2
Various docstring fixes ( #18221 )
...
(cherry picked from commit c07a707eab )
2022-04-03 14:10:48 +03:00
Stephen Liu
7d239b8958
feat: improve color consistency (save all labels) ( #19038 )
...
(cherry picked from commit dc575080d7 )
2022-04-03 14:10:47 +03:00
Ville Brofeldt
408573d4d6
feat: add support for comments in adhoc clauses ( #19248 )
...
* feat: add support for comments in adhoc clauses
* sanitize remaining freeform clauses
* sanitize adhoc having in frontend
* address review comment
(cherry picked from commit f341025d80 )
2022-04-03 14:10:47 +03:00
Diego Medina
f6346d627b
fix: custom SQL in Sort By Breaks Bar Chart ( #19069 )
...
(cherry picked from commit 4f0074a4ae )
2022-04-03 14:10:47 +03:00
Lily Kuang
c793b7bfe9
fix: allow subquery in ad-hoc SQL (WIP) ( #19242 )
...
* allow adhoc subquery
* add config for allow ad hoc subquery
* default to true allow adhoc subquery
* fix test
* Update superset/errors.py
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
* Update superset/connectors/sqla/utils.py
Co-authored-by: David Aaron Suddjian <1858430+suddjian@users.noreply.github.com >
* rename and add doc string
* fix for big query test
* Update superset/connectors/sqla/utils.py
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
* Apply suggestions from code review
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
* add test
* update validate adhoc subquery
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
Co-authored-by: David Aaron Suddjian <1858430+suddjian@users.noreply.github.com >
(cherry picked from commit 50902d51f5 )
2022-04-03 14:10:46 +03:00
Yongjie Zhao
f1ea0ad56c
fix: adhoc column in legacy chart ( #19234 )
...
(cherry picked from commit b5e9fad11a )
2022-04-03 14:04:52 +03:00
Diego Medina
f2541429cd
fix(sql lab): deleting the last saved query or the last executed from history ( #19225 )
...
* fix: fix issue when deleting the last saved query or the last executed query
* merge migration
(cherry picked from commit aa5c80bda6 )
2022-04-03 14:04:52 +03:00
Beto Dealmeida
3de8370ead
feat: import/export assets commands ( #19217 )
...
* feat: import/export assets commands
* Add overwrite test
* Fix tests
(cherry picked from commit 51061f0d67 )
2022-04-03 14:04:52 +03:00
Jesse Yang
2651c1d925
chore: upgrade mypy ( #19227 )
...
(cherry picked from commit 92cd0a18e6 )
2022-04-03 14:04:52 +03:00
Craig Rueda
f91f9f5aae
feat(ui): Adding manifest prefix config ( #19141 )
...
* Adding manifest prefix config
* Fixing broken tests
* Fixing import
* Adding prefix for remaining assets
* Changing static prefix strategy
* Fixing DST test
* Fixing up formatting
* Fixing up async_query_manager.py types
2022-04-03 14:03:35 +03:00
cccs-Dustin
a1b9b2946d
feat(sqllab): Add a configuration option to disable data preview ( #19104 )
...
(cherry picked from commit 02ef9ca4cd )
2022-04-03 14:02:24 +03:00
Beto Dealmeida
7bc6e14151
chore: refactor import command ( #19216 )
...
(cherry picked from commit a4848a2f46 )
2022-04-03 14:02:24 +03:00
Ville Brofeldt
8c102174b8
feat: add permalink to dashboard and explore ( #19078 )
...
* rename key_value to temporary_cache
* add migration
* create new key_value package
* add commands
* lots of new stuff
* fix schema reference
* remove redundant filter state from bootstrap data
* add missing license headers
* fix pylint
* fix dashboard permalink access
* use valid json mocks for filter state tests
* fix temporary cache tests
* add anchors to dashboard state
* lint
* fix util test
* fix url shortlink button tests
* remove legacy shortner
* remove unused imports
* fix js tests
* fix test
* add native filter state to anchor link
* add UPDATING.md section
* address comments
* address comments
* lint
* fix test
* add utils tests + other test stubs
* add key_value integration tests
* add filter box state to permalink state
* fully support persisting url parameters
* lint, add redirects and a few integration tests
* fix test + clean up trailing comma
* fix anchor bug
* change value to LargeBinary to support persisting binary values
* fix urlParams type and simplify urlencode
* lint
* add optional entry expiration
* fix incorrect chart id + add test
(cherry picked from commit b7a0559aaf )
2022-04-03 14:02:23 +03:00
Beto Dealmeida
90f4d77422
feat: add export_related flag ( #19215 )
...
* feat: add export_related flag
* Fix lint
(cherry picked from commit d01fdad1d8 )
2022-04-03 14:02:23 +03:00
Hugh A. Miles II
ca0c12f2b3
fix: Logic for showing extension in Global Nav ( #19158 )
...
* fix logic for checking extensions
* add specific types
* fix lint
(cherry picked from commit 181ecf4509 )
2022-04-03 14:02:22 +03:00
David Aaron Suddjian
0598e95b1b
chore(embedded): refresh the guest token ( #19132 )
...
* refresh the guest token
* put back the date logic
* version
* fix time hijinks
* test
* Update superset-embedded-sdk/src/guestTokenRefresh.ts
(cherry picked from commit 54b60ded8e )
2022-04-03 14:02:21 +03:00
Beto Dealmeida
2e6bd1590d
feat: helper functions for RLS ( #19055 )
...
* feat: helper functions for RLS
* Add function to inject RLS
* Add UNION tests
* Add tests for schema
* Add more tests; cleanup
* has_table_query via tree traversal
* Wrap existing predicate in parenthesis
* Clean up logic
* Improve table matching
(cherry picked from commit 8234395466 )
2022-04-03 14:02:21 +03:00