Stan
7d8fff87b5
fix(assets api): import replaces dashboard ( #22208 )
...
Co-authored-by: Stan Houcke <stan.houcke@skyscanner.net >
2022-12-21 15:36:40 -08:00
BTatlock
32ccb97c9b
fix: allow datasource imports on Windows ( #22264 )
2022-11-30 12:07:49 -07:00
Beto Dealmeida
e60083b45b
chore: upgrade SQLAlchemy to 1.4 ( #19890 )
...
* chore: upgrade SQLAlchemy
* Convert integration test to unit test
* Fix SQLite
* Update method names/docstrings
* Skip test
* Fix SQLite
2022-07-18 15:21:38 -07:00
John Bodley
f0ca158989
fix: Refactor ownership checks and ensure consistency ( #20499 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2022-07-07 11:04:27 -07:00
Hugh A. Miles II
e3e37cb68f
chore: switching out ConnectorRegistry references for DatasourceDAO ( #20380 )
...
* rename and move dao file
* Update dao.py
* add cachekey
* Update __init__.py
* change reference in query context test
* add utils ref
* more ref changes
* add helpers
* add todo in dashboard.py
* add cachekey
* circular import error in dar.py
* push rest of refs
* fix linting
* fix more linting
* update enum
* remove references for connector registry
* big reafctor
* take value
* fix
* test to see if removing value works
* delete connectregistry
* address concerns
* address comments
* fix merge conflicts
* address concern II
* address concern II
* fix test
Co-authored-by: Phillip Kelley-Dotson <pkelleydotson@yahoo.com >
2022-06-21 13:22:39 +02:00
Elizabeth Thompson
32bb1ce3ff
feat!: pass datasource_type and datasource_id to form_data ( #19981 )
...
* pass datasource_type and datasource_id to form_data
* add datasource_type to delete command
* add datasource_type to delete command
* fix old keys implementation
* add more tests
2022-06-02 16:48:16 -07:00
Smart-Codi
36d45d9b98
fix: chart import error with virtual dataset ( #19782 )
...
* fix: chart import error with virtual dataset
* remove unnecessary comment
* resolve comment
2022-04-29 12:40:22 -06:00
Ville Brofeldt
a619cb4ea9
chore: upgrade black ( #19410 )
2022-03-29 20:03:09 +03:00
Beto Dealmeida
b05e7dbf2a
feat: API for asset sync ( #19220 )
...
* feat: API for asset sync
* Add unit tests.
* Improve tests
* Move files
* Add more tests
2022-03-22 08:29:24 -07:00
Beto Dealmeida
51061f0d67
feat: import/export assets commands ( #19217 )
...
* feat: import/export assets commands
* Add overwrite test
* Fix tests
2022-03-17 10:51:17 -07:00
Beto Dealmeida
a4848a2f46
chore: refactor import command ( #19216 )
2022-03-16 18:01:31 -07:00
Beto Dealmeida
d01fdad1d8
feat: add export_related flag ( #19215 )
...
* feat: add export_related flag
* Fix lint
2022-03-16 16:03:06 -07:00
Elizabeth Thompson
c143b37128
chore: log multiple errors ( #14064 )
...
* log all errors from db create
* return unique set of errors
* sort set for exceptions list
* run black
2022-03-08 17:31:19 -08:00
michael-hoffman-26
9fd18e98ac
refactor(ImportModelsCommand): clean code, extract logic into methods ( #18866 )
...
Co-authored-by: michael_hoffman <michael.hoffman@nielsen.com >
2022-02-24 20:50:55 +02:00
ofekisr
e53a50a155
chore(supeset.utils.core): move all database utils to database utils module ( #18058 )
2022-01-16 08:32:50 +02:00
ofekisr
16e012fe5d
refactor(chart.commands): separate commands into two different modules ( #17509 )
...
refactor: move imports under TYPE_CHECKING
2021-11-22 19:57:52 +02:00
Beto Dealmeida
1fbce88a46
fix: set correct schema on config import ( #16041 )
...
* fix: set correct schema on config import
* Fix lint
* Fix test
* Fix tests
* Fix another test
* Fix another test
* Fix base test
* Add helper function
* Fix examples
* Fix test
* Fix test
* Fixing more tests
2021-11-04 11:09:08 -07: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
John Bodley
fb4650a6eb
chore(pylint): Remove top-level disable ( #16589 )
...
* chore(pylint): Remove top-level disable
* Update examples.py
* Update command.py
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2021-09-15 09:30:23 -07:00
Beto Dealmeida
62d8ab7f9c
fix: create example DB if needed ( #16451 )
...
* fix: create example DB if needed
* fix lint
2021-08-27 07:19:37 -07:00
Ville Brofeldt
ac1d779a30
chore(ci): bump pylint to 2.10.2 ( #16463 )
2021-08-26 20:30:41 +03:00
John Bodley
7e4c940314
chore(pylint): Enable useless-suppression check ( #16388 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2021-08-24 03:58:41 +12:00
John Bodley
be7065faf8
chore(pylint): Reenable raise-missing-from check ( #16266 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2021-08-17 10:26:10 +12:00
John Bodley
36bc7b0b80
chore(pylint): Reenable too-few-public-methods check ( #16264 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2021-08-17 05:20:44 +12:00
Ville Brofeldt
d6f9c48aa1
feat(dao): admin can remove self from object owners ( #15149 )
2021-08-13 12:42:48 +03:00
Beto Dealmeida
7de54d016e
feat: import configuration from directory ( #15686 )
...
* feat: command to import configuration from a directory
This allows us to keep Superset updated from a repo:
```bash
$ superset import-directory /path/to/configs/
```
For example, I created a simple dashboard with a single chart:
PLACEHOLDER
I then exported it to a file `dashboard_export_20210714T104600.zip` and
unzipped it. After deleting the dashboard, chart, dataset, and database
I imported everything back with:
```bash
$ superset import-directory ~/Downloads/dashboard_export_20210714T104600/
```
I then changed the chart title in `~/Downloads/dashboard_export_20210714T104600/charts/Cnt_per_country_1.yaml` and ran the command again. The chart was succesfully updated:
PLACEHOLDER
* Small fixes
2021-08-11 18:42:50 -07:00
Beto Dealmeida
69c5cd7922
feat: handle subtle bug with load-examples ( #16052 )
2021-08-03 12:44:44 -07:00
Ville Brofeldt
c77bf264d1
fix(native-filters): add support for versioned import/export ( #16017 )
...
* fix(native-filters): add support for versioned import/export
* fix lint
* address CR
* make query_context nullable
2021-08-02 16:10:57 +03:00
Beto Dealmeida
eeba326f8b
chore: set UUID of examples DB ( #15724 )
2021-07-26 17:45:48 -07:00
Beto Dealmeida
211319673f
fix: publish the new example dashboards ( #15803 )
...
* fix: publish the new example dashboards
* Fix tests
2021-07-21 17:26:03 -07:00
John Bodley
32a5680510
chore: pylint reenable bad-option-value ( #15775 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2021-07-22 04:34:08 +12:00
Beto Dealmeida
2313e3ef4f
fix: show error on invalid import ( #14851 )
...
* fix: show error on invalid import
* Add unit test
* Remove unused imports
* Fix tests
2021-05-27 14:46:41 -07:00
Amit Miran
8ccf2e8f1e
feat(dashboard_rbac): dashboards API support for roles create/update + roles validation ( #12865 )
2021-02-07 16:16:19 +02:00
Jesse Yang
55c8f9ba60
feat(explore): allow opening charts with missing dataset ( #12705 )
2021-01-25 15:09:03 -08:00
Beto Dealmeida
7bef5ab4d2
fix: ignore system files on import ( #12526 )
2021-01-15 15:53:55 -08:00
Daniel Vaz Gaspar
a078296330
fix: impose dataset ownership check on old API ( #12491 )
...
* fix: impose dataset ownership check on old API
* update UPDATING.md
* partially protect the old MVC also
* prevent metric and column add and update
2021-01-13 18:06:41 +00:00
Beto Dealmeida
e47350ef96
fix: import ZIP files that have been modified ( #12425 )
...
* fix: import ZIP files that have been modified
* Add unit test
2021-01-12 12:56:26 -08:00
Beto Dealmeida
6b2b208b3b
fix: load example data into correct DB ( #12292 )
...
* fix: load example data into correct DB
* Fix force_data
* Fix lint
2021-01-05 17:52:42 -08:00
Beto Dealmeida
877b153331
feat: estimate query cost in Postgres ( #12130 )
...
* feat: estimate query cost in Postgres
* Add example in config
* Fix lint
2020-12-18 16:08:53 -08:00
Beto Dealmeida
5e811a14ef
feat: load examples from config instead of code ( #12026 )
...
* feat: load examples from config instead of code
* Remove database
* Update data URL
2020-12-15 13:44:23 -08:00
Beto Dealmeida
475f59cb1c
feat: confirm overwrite when importing ( #11982 )
...
* feat: confirm overwrite when importing
* Skip flaky test
2020-12-10 14:50:10 -08:00
Beto Dealmeida
9256b6fb3d
chore: consolidate common code in importers ( #11936 )
...
* chore: consolidate common code in importers
* Small fixes
* Small fixes
2020-12-10 10:11:58 -08:00
Beto Dealmeida
c354e7e0ab
fix: remove root dir from ZIP bundle ( #11805 )
...
* fix: remove root dir from ZIP bundle
* Fix lint
* Fix tests
* Improve tests
* Fix dashboard as well
2020-11-25 11:47:48 -08:00
Beto Dealmeida
501b9d47c5
feat: API endpoint to import dashboards ( #11751 )
...
* ImportChartsCommand
* feat: add a command to import dashboards
* feat: API endpoint to import dashboards
* Add dispatcher
* Raise specific exception
* Fix test
* Remove print calls
* Add logging when passing
2020-11-24 22:45:35 -08:00
Beto Dealmeida
25345bea64
feat: add a command to import dashboards ( #11749 )
...
* feat: add a command to import dashboards
* Fix lint
* Remove print()
2020-11-23 16:28:26 -08:00
Craig Rueda
8bdf943687
fix: Adding __init__.py in superset.commands.importers ( #11740 )
...
* Adding __init__.py in superset.commands.importers
* Linting
* Linting again...
2020-11-18 13:19:04 -08:00
Beto Dealmeida
7bc353f8a8
feat: new import commands for dataset and databases ( #11670 )
...
* feat: commands for importing databases and datasets
* Refactor code
2020-11-16 17:11:20 -08:00
Beto Dealmeida
cf868891be
chore: rename IMPORT_EXPORT_VERSION ( #11636 )
2020-11-10 09:45:45 -08:00
Beto Dealmeida
51712bf7ce
fix: CommandInvalidError had invalid init ( #11635 )
2020-11-10 07:41:03 -08:00
Beto Dealmeida
1ebeffa104
chore: remove directory importexport ( #11531 )
2020-11-03 17:10:52 -08:00