Ville Brofeldt
1050fcbd3c
fix(key_value): use longblob on mysql ( #19805 )
...
* fix(key_value): use longblob on mysql
* set length
(cherry picked from commit a1bd5b283c )
2022-04-25 10:46:54 +03:00
Jesse Yang
90b08fa095
chore: skip SIP-68 shadow writing for LTS
2022-04-15 14:52:25 +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
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
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
a70f4dc52f
chore: upgrade black ( #19410 )
2022-04-03 19:13:17 +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
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
Kamil Gabryjelski
8640814a92
fix(plugin-chart-echarts): Apply temporary filters to Query B in explore ( #18998 )
...
* fix(explore): Extra filters not applied to query b in mixed timeseries
* Add return type
* Apply review comment
* Fix non-dnd filters
(cherry picked from commit 9f834e8317 )
2022-04-03 14:02:11 +03:00
Beto Dealmeida
8951e23ac6
fix: remove unneeded complexity in migration ( #19022 )
...
(cherry picked from commit 50bb86d666 )
2022-04-03 13:52:39 +03:00
John Bodley
3b2b6674f6
fix(sqllab): Replace stringified 'null' schema column values with NULL ( #18992 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com >
(cherry picked from commit 19eb73b316 )
2022-04-03 13:52:38 +03:00
Ville Brofeldt
268ce0ae8b
fix(dataset): handle missing database in migration ( #18948 )
...
(cherry picked from commit 2baceddbf1 )
2022-04-03 13:52:35 +03:00
Beto Dealmeida
00c99c91ec
feat: new dataset/table/column models ( #17543 )
...
* feat: new models for SIP-68
* feat: new dataset models DB migration
* Add shadow write (WIP)
* Physical dataset shadow write (WIP)
* Virtual dataset shadow write (WIP)
* Update migration to populate models
* Cascade delete columns
* after_delete
* Update hook
* Add metric test
* Do not rename tables
* Small fixes
* Fix migration
* Fix tests
* Fix more tests
* Even more tests
* Addressing comments (WIP)
* Fix migration
* Rebase and update head
* Fix unit tests
* Add external management cols
* Small fixes
2022-02-24 11:02:01 -08:00
Lily Kuang
1fbdabd2cf
feat: embedded dashboard ( #18561 )
...
* add embedded dashboard
* json
* lint
* change json to text
* uuid
2022-02-08 00:18:52 -08:00
Beto Dealmeida
1c0b141e2d
feat: allow assets to be managed externally ( #18093 )
...
* feat: allow assets to be managed externally
* Use server_default
2022-01-24 11:03:01 -08:00
AAfghahi
5e84fd19a9
refactor: Migration for Tabbed Sql Editor ( #17925 )
...
* a lot of console logs
* migration for tabbed Sql Editors
2022-01-12 12:25:24 -05:00
Beto Dealmeida
4479fc9222
fix: force_screenshot migration ( #17928 )
2022-01-04 18:17:18 -08:00
Beto Dealmeida
2cd8054358
feat: add force option to report screenshots ( #17853 )
...
* Update existing tests
* Add backend test
* feat: add force option to report screenshots
* Add tests
* Rebase fixes
* Do not force screenshot on dashboard alerts
2021-12-22 12:16:04 -08:00
Kamil Gabryjelski
2c3f39f3f2
feat(plugin-chart-pivot-table): support series limit ( #17803 )
...
* feat(plugin-chart-pivot-table): support series limit
* Add a migration
* Use non-legacy series limit controls
* Add a todo comment
* Bug fix
2021-12-21 16:58:54 +01:00
Craig Rueda
b3db6140c8
fix(alembic): Making Alembic logger config optional ( #17774 )
...
* Making Alembic logger config optional
* Switching to app config
2021-12-15 16:16:48 -08:00
Kamil Gabryjelski
124af4c566
chore(explore): Migrate BigNumber to v1 api [ID-28][ID-55] ( #17587 )
...
* chore(explore): Migrate BigNumber to v1 api
* Move to echarts
* Use Echarts trendline
* Fix imports
* Fix parsing dates as strings
* Add from_dttm and to_dttm to v1 chart response
* Fix post processing
* Fix timeRangeFixed
* Fix tests
* Remove from and to dttm from cache
* Cleanup date formatting
* Fix storybook
* Fix missing types
* Fix timestamp with timezone
* Add types to demo's tsconfig
* bug fix
* fix import
* Fix cypress tests
* add sort
* add resample to handle missing values properly
* Sync ChartDataResponseResult schema with ts interface
* Lint fix
* Add migration
* Fix migration
* Remove pass
* Re-raise the exception in migration
* Typo fix
* Update revision
Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com >
2021-12-15 10:15:14 +01:00
cccs-joel
e6db62c469
fix: Change datatype of column type in BaseColumn to allow larger datatype names for complexed columns ( #17360 )
...
* Change datatype of column type in BaseColumn to allow larger datatype names for complexed columns
* Fixed formatting
* Added an entry in the UPDATING.md file as a potential downtime
* Update UPDATING.md
Accept proposed changes.
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
* Updated down revision number to reflect new head
Co-authored-by: cccs-joel <cccs-joel@users.noreply.github.com >
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
2021-12-13 14:28:21 -08:00
Beto Dealmeida
0d2299cb60
fix: migration out-of-scope bind ( #17728 )
...
* fix: migration out-of-scope bind
* Bypass flaky test
2021-12-13 13:04:35 -08:00
Ajay M
1377465a7d
feat(alerts): Column for select tabs to send ( #17604 )
...
* init
* init
* Modify migration
* Modify migration
* revert config, delete test file
* Rename column, modify migration
* rename a column
* Make extra non-nullable
* Fix typo
2021-12-03 10:28:25 -08:00
Geido
83e49fc9ee
feat: Certify Charts and Dashboards ( #17335 )
...
* Certify charts
* Format
* Certify dashboards
* Format
* Refactor card certification
* Clear details when certified by empty
* Show certification in detail page
* Add RTL tests
* Test charts api
* Enhance integration tests
* Lint
* Fix dashboards count
* Format
* Handle empty value
* Handle empty slice
* Downgrade migration
* Indent
* Use alter
* Fix revision
* Fix revision
2021-11-24 13:42:52 +02:00
Shiva Raisinghani
0ca4312212
fix: rename to schemas_allowed_for_file_upload in dbs.extra ( #17323 )
...
* rename to schemas_allowed_for_file_upload in dbs.extra
* black
* I should really setup pre-commit hooks
* Apply suggestions
Co-authored-by: John Bodley <4567245+john-bodley@users.noreply.github.com >
* move changes to a seperate migration
* fix spaces
* black
Co-authored-by: John Bodley <4567245+john-bodley@users.noreply.github.com >
2021-11-14 09:57:09 -08:00
Beto Dealmeida
8ee50deac6
Drop constraint ( #17275 )
2021-10-29 09:33:25 -07:00
Shiva Raisinghani
ef3afbde82
refactor: Repeated boilerplate code between upload to database forms ( #16756 )
...
* abstract boilerplate code into class and rename csv to file
* add db migration
* fix some stuff
* more renaming of csv to file
* rename in translations
* update down revision
* update down revision
* bump chart version
* switch to alter column name approach in db migration
* fix db migration for MySQL
* db migration conflict
2021-10-25 13:53:06 +03:00
John Bodley
b9ff85d9ea
chore(engine): Translate fractional time grains—requires @superset-ui bump ( #17078 )
...
* chore(engine): Translate fractional time grains
* Bump @superset-ui
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2021-10-12 21:40:48 -07:00
Yongjie Zhao
bbe7aa3fc3
chore: db migrate timeseries_limit_metric to legacy_order_by in pivottable2 ( #16849 )
2021-09-27 16:25:51 +08:00
ofekisr
84f7614e97
feat(filter-set): Add filterset resource ( #14015 )
...
* Add filterset resource
* fix: fix pre-commit
* add tests
* add tests and fixes based of failures
* Fix pre-commit errors
* chore init filterset resource under ff constraint
* Fix migration conflicts
* Fix pylint and migrations issues
* Fix pylint and migrations issues
* Fix pylint and migrations issues
* Fix pylint and migrations issues
* Fix pylint and migrations issues
* Fix pylint and migrations issues
* Fix pylint and migrations issues
* Fix pylint and migrations issues
* Fix pylint and migrations issues
* Fix pylint and migrations issues
* Fix pylint and migrations issues
* add tests and fixes based of failures
* Fix missing license
* fix down revision
* update down_revision
* fix: update down_revision
* chore: add description to migration
* fix: type
* refactor: is_user_admin
* fix: use get_public_role
* fix: move import to the relevant location
* chore: add openSpec api schema
* chore: cover all openspec API
* fix: pre-commit and lint
* fix: put and post schemas
* fix: undo superset_test_config.py
* fix: limit filterSetsApi to include_route_methods = {"get_list", "put", "post", "delete"}
* renaming some params
* chore: add debug in test config
* fix: rename database to different name
* fix: try to make conftest.py harmless
* fix: pre-commit
* fix: new down_revision ref
* fix: bad ref
* fix: bad ref 2
* fix: bad ref 3
* fix: add api in initiatior
* fix: open spec
* fix: convert name to str to include int usecases
* fix: pylint
* fix: pylint
* Update superset/common/request_contexed_based.py
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com >
* chore: resolve PR comments
* chore: resolve PR comments
* chore: resolve PR comments
* fix failed tests
* fix pylint
* Update conftest.py
* chore remove BaseCommand to remove abstraction
* chore remove BaseCommand to remove abstraction
* chore remove BaseCommand to remove abstraction
* chore remove BaseCommand to remove abstraction
* chore fix migration
Co-authored-by: Ofeknielsen <ofek.israel@nieslen.com >
Co-authored-by: amitmiran137 <amit.miran@nielsen.com >
Co-authored-by: Amit Miran <47772523+amitmiran137@users.noreply.github.com >
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com >
2021-09-23 11:27:59 +03:00
Phillip Kelley-Dotson
a198dbb19b
feat: add certifiedby & certification details fields to the edit dataset columns fields ( #16454 )
...
* add migration
* add backend and frontend for certified
* update migration with batch
* fix integration test and update Updating.md
* Update superset-frontend/src/datasource/DatasourceEditor.jsx
Co-authored-by: Geido <60598000+geido@users.noreply.github.com >
* Update superset-frontend/src/datasource/DatasourceEditor.jsx
Co-authored-by: Geido <60598000+geido@users.noreply.github.com >
* Update superset-frontend/src/datasource/DatasourceEditor.jsx
Co-authored-by: Geido <60598000+geido@users.noreply.github.com >
* change method name
* add tooltip info
* add mixin
* merge heads
* address comments
* fix select label styles
* add extra field
* fix test?
* add extra field to put schema
Co-authored-by: Geido <60598000+geido@users.noreply.github.com >
2021-09-22 15:09:30 -07:00
Ajay M
4b70d46355
feat(dashboard): Native filters - add type to native filter configuration ( #16549 )
...
* iSort fixes
* Add type key to the new filters
* Fix wrong attribute
* PR comments
* PR comments
* Fix failing tests
2021-09-09 09:46:44 -07:00
Erik Ritter
d5f63a74e4
fix: remove mergepoint from past migration ( #16301 )
2021-08-17 16:27:33 -07:00
Elizabeth Thompson
628169a171
feat: change query predicate to text ( #16160 )
...
* change query predicate to text
* make input multiline
* remove value that is too long for the downgrade
* keep logging lint rule
2021-08-10 17:52:01 -07:00
Phillip Kelley-Dotson
f0e3b68cc2
fix: ensure that users viewing chart does not automatically save edit data ( #16077 )
...
* add last_change_at migration
* add last_saved_by db migration
* finish rest of api migration
* run precommit
* fix name
* run precommitt
* remove unused mods
* merge migrations
* Update superset/migrations/versions/6d20ba9ecb33_add_last_saved_at_to_slice_model.py
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
* Update superset/migrations/versions/6d20ba9ecb33_add_last_saved_at_to_slice_model.py
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
* Update superset/migrations/versions/f6196627326f_update_chart_permissions.py
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
* fix test
* precommit
* remove print
* fix test
* change test
* test commit
* test 2
* test 3
* third time the charm
* fix put req
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
2021-08-10 10:29:49 -06:00
Beto Dealmeida
28c383af68
fix: migrate_roles ( #16098 )
2021-08-06 10:05:19 -07:00
Beto Dealmeida
1dbd1e9f02
chore: simplify chart permissions ( #16078 )
2021-08-05 08:18:29 -07:00
Ville Brofeldt
7ef97a54e2
feat(explore): add automatic conditional formatter to pivot table v2 ( #16045 )
2021-08-04 22:12:20 +03:00
Beto Dealmeida
ec22acb786
fix: handle schemas_allowed_for_csv_upload serde ( #16038 )
...
* fix: handle schemas_allowed_for_csv_upload serde
* Add migration
2021-08-03 09:10:32 -07:00
John Bodley
c0615c55df
fix: Ensure table uniqueness on update ( #15909 )
...
* fix: Ensure table uniqueness on update
* Update models.py
* Update slice.py
* Update datasource_tests.py
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2021-08-03 07:45:55 +12:00
Elizabeth Thompson
c1eb9cec49
add timezone to report schedule ( #15747 )
2021-07-22 15:36:15 -07:00
Beto Dealmeida
9a79a5775b
feat: store query context when saving charts ( #15824 )
...
* WIP
* Add migration
* Fix tests
2021-07-21 13:54:39 -07:00
Beto Dealmeida
d26254099e
fix: benchmark_migration.py needs to close sssion ( #15822 )
2021-07-21 11:16:46 -07:00
Beto Dealmeida
6cb91ee142
fix: migration script can't drop constraint ( #15807 )
2021-07-20 17:24:58 -07:00
Beto Dealmeida
1e1706d741
fix: migration downgrade references wrong column ( #15791 )
2021-07-19 17:41:53 -07:00
AAfghahi
0c74a8060f
oops ( #15725 )
2021-07-15 16:22:48 -07:00
AAfghahi
7dd3af6dda
feat: add Column to reports model ( #15683 )
...
* migration
* added index, fixed misspelling
* Fix benchmark script
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
2021-07-15 13:38:57 -07:00
Amit Miran
62a8f2e193
chore(python-testing): move memoized tests to unit tests ( #15507 )
...
* chore: move memoized test into a separated file
create integration test workflow
* chore: create unit test workflow to run purely pytest
* fix: bad reference
* fix: remove pip requirements bc there aren't any yet
* temp: install unit dependencies directly
* fix: --rootdir=
* fix: try to run only unit test
* chore: decouple memoized as separated module
* fix: bring back dependencies bc superset top-level module is coupled to flask and others so no reason no to do it
* fix: reference
* fix: pre-commit
* fix: pylint
2021-07-12 10:00:18 +03:00