Hugh A. Miles II
c72894725e
fix: Fix Big Query API for POST w/ no parameters ( #14822 )
...
* Update schemas.py
* Update bigquery.py
* Fix tests
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
2021-05-25 17:13:17 -04:00
AAfghahi
904b60e420
chore: added BasicParametersMixin to Redshift ( #14752 )
...
* redshift basic mixin and tests
* rebased
* forgot prefix
2021-05-24 17:32:53 -04:00
Hugh A. Miles II
6d33432b58
feat: Create BigQuery Parameters for DatabaseModal ( #14721 )
2021-05-23 12:45:48 -04:00
AAfghahi
67e373000e
feat: Expanded Parameters for Mysql ( #14680 )
...
* added mysql form
* revisions
* Update superset/db_engine_specs/mysql.py
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
* added ssl and mysql testing
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
2021-05-19 08:47:33 -07:00
Beto Dealmeida
5e95d4638c
fix: import dataset with extra; Vertica URI ( #14698 )
...
* fix: import dataset with extra; Vertica URI
* Fix lint
2021-05-18 20:51:33 -07:00
Beto Dealmeida
971f5883f0
feat: add SSL to new DB parameters ( #14673 )
...
* feat: add SSL to new DB parameters
* Fix test
* Raise if cls.encryption_parameters is empty
2021-05-17 21:27:43 -07:00
AAfghahi
852842028a
make config method optional ( #14668 )
2021-05-17 17:09:20 -04:00
AAfghahi
4f5c537250
feat: Configuration Method and expanded parameters for Database Model ( #14451 )
...
* db migration for dbs
* first draft at logic
* added unit tests
* revisions
* use strings for db values
* lint and revisions to tests
* changed test back
* added revisions for testing
* Update superset/databases/commands/update.py
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
* Update superset/databases/schemas.py
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
* Update superset/models/core.py
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
* Update superset/databases/commands/update.py
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
* got rid of extra imports added new test
* Update superset/databases/schemas.py
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
2021-05-14 18:19:17 -07:00
Beto Dealmeida
ba5d66cb0a
fix: DB parameter validation ( #14636 )
2021-05-14 14:07:34 -07:00
Hugh A. Miles II
3a81e6aee8
change name to Basic instead of Base ( #14625 )
2021-05-13 15:05:37 -04:00
Beto Dealmeida
31f406a526
feat: API endpoint to validate databases using separate parameters ( #14420 )
...
* feat: new endpoint for validating database parameters
* Rebase
* Remove broken tests
2021-05-12 18:32:10 -07:00
Daniel Vaz Gaspar
6541a03d0b
fix: SQLLab role permissions ( #14372 )
...
* fix: SQLLab role permissions
* add missing perm
* fix tests
* fix security test
* fix security test
* fix tests
2021-04-29 15:58:08 +01:00
Beto Dealmeida
e7ad03d44f
feat: add endpoint to fetch available DBs ( #14208 )
...
* feat: add endpoint to fetch available DBs
* Fix lint
2021-04-23 10:51:47 -07:00
Beto Dealmeida
5d3191bb61
feat: catch errors on do_ping ( #14250 )
2021-04-21 18:43:40 -04:00
Beto Dealmeida
21c6efea67
chore: rename connection errors ( #14169 )
2021-04-15 10:57:02 -07:00
Beto Dealmeida
c60a93db9c
feat: add extract_errors to Postgres ( #13997 )
...
* feat: add extract_errors to Postgres
* Add unit tests
* Fix lint
* Fix unit tests
2021-04-08 13:24:54 -07:00
Beto Dealmeida
a82d72fef6
feat: initial work to make v1 API compatible with SIP-40 and SIP-41 ( #13960 )
...
* WIP
* Use errorhandler
* Add response schema
* Fix status on HTTPException
* s/found/encountered/g
* Fix test
* Fix lint
* Fix lint and test
2021-04-06 22:06:32 -07:00
Jesse Yang
4789074309
fix(sqla-query): order by aggregations in Presto and Hive ( #13739 )
2021-04-01 18:10:17 -07:00
Beto Dealmeida
db57f90a34
feat: better error message when adding DBs ( #13601 )
...
* WIP
* Adding tests
* Add unit tests
* Show error message
* Fix lint
* Fix after rebase
2021-03-17 20:29:26 -07:00
Ville Brofeldt
375797f649
feat(native-filters): add timegrain and column filter ( #13484 )
...
* feat(native-filters): add timegrain and column filter
* add fetch values predicate
* bump deps
* lint
* fix test
* add python test for legacy merge
* fix default value and isInitialized to not check strict equality
* Address comments
* add FilterValue type
* address review comments
2021-03-09 17:27:46 +02:00
Hugh A. Miles II
c91c45574b
feat: add event_logger to test_connection and create_database commands ( #13468 )
...
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
2021-03-09 08:17:13 -05:00
Beto Dealmeida
3d23adec5e
chore: use shillelagh instead of gsheetsdb ( #13185 )
...
* chore: use shillelagh instead of gsheetsdb
* Fix tests
* Clean up code and remove duplication
* Fix test
* Tighten dep
2021-02-18 09:48:18 -08:00
Daniel Vaz Gaspar
fa4c118e2d
fix: API tests, make them possible to run independently again ( #13076 )
...
* fix: API tests, possible to run independently
* fix workflow name
2021-02-11 18:19:41 +00:00
Beto Dealmeida
ab3f4bd94b
feat: add separate endpoint to fetch function names for autocomplete ( #12840 )
...
* WIP
* Add unit test for API
* Add spec
* Fix unit test
* Fix unit test
* Fix test
* Fix test
* Add period to error message
2021-02-02 18:01:01 -08:00
Karol Kostrzewa
241f380e2e
test: World bank examples ( #12161 )
...
* add world bank data fixture
* fix fixture cleanup, add fixture to dashboard_tests
* apply world bank fixtures, fix tests
* fix fixture typo, dashboard ids
* fix export dashboard metadata
* fix test_export_dashboard_command_key_order
* fix export dash tests, not add row when no orphans
* debug timeout
* fixes after merge
* fix lint
* run pre-commit
* comment test for debug
* fix save.test.js
Co-authored-by: Karol Kostrzewa <karol.kostrzewa@polidea.com>
2021-01-13 14:20:05 -08:00
Ville Brofeldt
40a334aacf
feat(db-engine-specs): add support for Postgres root cert ( #11720 )
...
* feat(db-engine-specs): add support for Postgres root cert
* remove logging of json decode exception message
* fix error message
* fix error message
2021-01-13 13:39:28 +02:00
Karol Kostrzewa
2ab490a101
test: birth names ( #12226 )
...
* add birth names fixture
* fix birth names related tests
* fix test_import_v0_dataset_cli_export columns order
* fix celery tests drop table
* fix mysql datetime type
* fix mysql typo in charts/api_tests
* refactor
* add licence
* fix use fixture for presto
* fix presto, hive query
* fix flaky metadata
* fix mysql bigint type
* fix run query
* fix hive datatype in metadata
* fix slice owner for cypress
* refactor num_boys num_girls
* fix is_dttm column
* debug logging
* fix query offset
* fix presto ds type in metadata
* fix presto ds type
* clean up debug logging
2021-01-11 05:57:55 -08:00
Jesse Yang
2210015aab
test: rename column names for birth_names dataset ( #12082 )
2021-01-08 14:13:20 -08:00
Daniel Vaz Gaspar
c685c9ea8f
refactor: test connection raises only command exceptions ( #12307 )
...
* refactor: test connection raises only command exceptions
* fix tests
* fix tests
* fix tests
* lint fix
2021-01-08 13:10:11 +00:00
Karol Kostrzewa
1a2680d4a1
test: fix flaky Python unit tests ( #12253 )
2021-01-05 16:40:01 -08:00
Daniel Vaz Gaspar
790ac5ef87
feat(databases): security perm simplification ( #12036 )
...
* feat(databases): security perm simplification
* fix tests
* fix JS tests
2020-12-17 12:37:05 +00: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
Kasia Kucharczyk
4da47f1635
tests: added fixture with energy usage instead of example ( #11308 )
...
* Added energy usage fixture. Updated dashboard utils and unicode fixture with new method parameters.
* Add energy fixture to tests/access_tests.py
* Add energy fixture to tests/core_tests.py
* Add energy fixture to tests/dashboard_tests.py
* Add energy fixture to tests/datasets/api_tests.py
* Add energy fixture to tests/db_engine_specs/base_engine_spec_tests.py
* Add energy fixture to tests/import_export_tests.py
* Add energy fixture to tests/model_tests.py
* Add energy fixture to tests/query_context_tests.py
* Add energy fixture to tests/security_tests.py
* Add energy fixture to tests/charts/api_tests.py
* Changed formatting of slices' parameters in energy usage fixture
* Removed loading energy udage data from test conf file
* Add energy fixture to tests/databases/api_tests.py
* Fixes after review: removed isort:skip, load_charts->load_energy_charts, removed unused import.
* Added energy fixture to tests/charts/commands_tests.py and retrieving proper Slice by name
* Fixed charts/api_tests.py to use energy_usage from fixtures
* Fixed datasets/commands_tests.py to retrieve dataset by name and use energy_usage fixture
* Changed energy usage data to generated data and fixed chart tests which was checking energy usage data
2020-12-09 12:02:29 -08:00
Beto Dealmeida
2b9695c520
feat: add modal to import databases ( #11884 )
...
* feat: add modal to import databases
* Fix test
* Improve hook
* Remove log and needless store.
* Change JS functions
2020-12-07 11:22:45 -08:00
Daniel Vaz Gaspar
bac84a3aac
fix: delete chart, dashboards, dbs with assoc reports ( #11801 )
...
* fix: delete chart or dashboards with assoc reports
* database constraint to reports and tests
* add tests for dashboards and database
* fix exceptions default text
2020-11-26 08:45:49 +00: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
Beto Dealmeida
a3a2a68f01
feat: API endpoint to import charts ( #11744 )
...
* ImportChartsCommand
* feat: API endpoint to import charts
* Add dispatcher
* Fix docstring
2020-11-20 14:40:27 -08:00
Beto Dealmeida
cce716a821
feat: API endpoints to upload dataset/db ( #11728 )
...
* feat: API endpoints to upload dataset/db
* Fix method call
2020-11-17 14:49:33 -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
Jesse Yang
4cfcaebb61
feat: rename TABLE_NAMES_CACHE_CONFIG to DATA_CACHE_CONFIG ( #11509 )
...
* feat: rename TABLE_NAMES_CACHE_CONFIG to DATA_CACHE_CONFIG
The corresponding cache will now also cache the query results.
* Slice use DATA_CACHE_CONFIG CACHE_DEFAULT_TIMEOUT
* Add test for default cache timeout
* rename FAR_FUTURE to ONE_YEAR_IN_SECS
2020-11-13 22:35:10 -08:00
Jesse Yang
ec8ccd4cf1
feat: keep modal open when saving database failed ( #11618 )
2020-11-12 16:10:14 -08:00
Jesse Yang
542d2e3b06
chore: clean up a debug line from #11653 ( #11663 )
2020-11-12 08:37:49 -08:00
Jesse Yang
302c9603c4
fix: database connection validation when creation ( #11653 )
2020-11-12 08:00:38 +00:00
Beto Dealmeida
fbcfaacda3
feat: create base class for export commands ( #11463 )
...
* Add UUID to saved_query
* Reuse function from previous migration
* Point to new head
* feat: add backend to export saved queries using new format
* Rename ImportMixin to ImportExportMixin
* Create base class for exports
* Add saved queries as well
* Add constant, small fixes
* Fix wrong import
* Fix lint
2020-10-30 11:52:11 -07:00
Erik Ritter
ca40877640
feat: add certifications to tables ( #11450 )
2020-10-30 11:28:01 -07:00
Beto Dealmeida
00e394451f
feat: export datasets as ZIP files ( #11332 )
...
* Export datasets as ZIP files
* Add logging when failing to parse extra
* Fix logging
2020-10-22 10:32:08 -07:00
Daniel Vaz Gaspar
b86f779dc1
feat: add statsd metrics to FAB rest API post, put and delete ( #11362 )
2020-10-22 08:56:26 +01:00
Kasia Kucharczyk
0e97c4f66c
tests: added fixtures to created dashboards and updated test with proper value ( #11290 )
...
* Added fixtures for hidden and published dashboards. Added fixture to restore copied dashboard in dashboard tests. Changed number of dashboards in datasets/api_tests.py because copied dashboard is removed.
* Changed number of dashboards in database api tests after cleanup of dashboards in dashboards_tests
2020-10-19 15:07:26 -07:00