fix: remove encryption from db params#16214
Conversation
There was a problem hiding this comment.
feel free to suggest a dryer way of doing this (some repetition with below)
f9c4641 to
77c650a
Compare
Codecov Report
@@ Coverage Diff @@
## master #16214 +/- ##
==========================================
- Coverage 76.73% 76.72% -0.02%
==========================================
Files 996 996
Lines 52999 53079 +80
Branches 6738 6738
==========================================
+ Hits 40668 40724 +56
- Misses 12102 12126 +24
Partials 229 229
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
|
/testenv up |
|
@eschutho Ephemeral environment spinning up at http://34.217.26.202:8080. Credentials are |
| cls, uri: str, encrypted_extra: Optional[Dict[str, Any]] = None | ||
| ) -> BasicParametersType: | ||
| url = make_url(uri) | ||
| query = { |
There was a problem hiding this comment.
You can also do this:
query = dict(item for item in url.query.items() if item not in cls.encryption_parameters.items())|
Ephemeral environment shutdown and build artifacts deleted. |
* remove encryption from db params * Update superset/db_engine_specs/base.py Co-authored-by: Beto Dealmeida <roberto@dealmeida.net> Co-authored-by: Beto Dealmeida <roberto@dealmeida.net> (cherry picked from commit 67c4c01)
|
🏷 2021.31 |
* remove encryption from db params * Update superset/db_engine_specs/base.py Co-authored-by: Beto Dealmeida <roberto@dealmeida.net> Co-authored-by: Beto Dealmeida <roberto@dealmeida.net> (cherry picked from commit 67c4c01)
…gies * upstream/master: (64 commits) check roles before fetching reports (#16260) chore: upgrade mypy and add type guards (#16227) fix: pivot columns with ints for name (#16259) chore(pylint): Bump Pylint to 2.9.6 (#16146) fix examples tab for dashboard (#16253) chore: bump superset-ui packages to 0.17.84 (#16251) chore: Shows the dataset description in the gallery dropdown (#16200) fix(Dashboard): Omnibar dropdown visibility and keyboard commands (#16168) chore: bump py version for integration test (#16213) fix: skip perms on query context update (#16250) refactor: external metadata fetch API (#16193) feat(dao): admin can remove self from object owners (#15149) fix(dashboard): cross filter chart highlight when filters badge icon clicked (#16233) fix: validate_parameters and query (#16241) fix: Remove Advanced Analytics tag for 2 charts (#16240) Revert "feat: Changing Dataset names (#16199)" (#16235) feat: Allow users to connect via legacy SQLA form (#16201) fix: remove encryption from db params (#16214) fix(Explore): Show the tooltip only when label does not fit the container in METRICS/FILTERS/GROUP BY/SORT BY of the DATA panel (#16060) Show/hide tooltips (#16192) ... # Conflicts: # superset/tasks/caching/cache_strategy.py
* remove encryption from db params * Update superset/db_engine_specs/base.py Co-authored-by: Beto Dealmeida <roberto@dealmeida.net> Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
* remove encryption from db params * Update superset/db_engine_specs/base.py Co-authored-by: Beto Dealmeida <roberto@dealmeida.net> Co-authored-by: Beto Dealmeida <roberto@dealmeida.net> (cherry picked from commit 67c4c01)
* remove encryption from db params * Update superset/db_engine_specs/base.py Co-authored-by: Beto Dealmeida <roberto@dealmeida.net> Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
* remove encryption from db params * Update superset/db_engine_specs/base.py Co-authored-by: Beto Dealmeida <roberto@dealmeida.net> Co-authored-by: Beto Dealmeida <roberto@dealmeida.net> (cherry picked from commit 67c4c01)
* remove encryption from db params * Update superset/db_engine_specs/base.py Co-authored-by: Beto Dealmeida <roberto@dealmeida.net> Co-authored-by: Beto Dealmeida <roberto@dealmeida.net> (cherry picked from commit a91cfd2)
* remove encryption from db params * Update superset/db_engine_specs/base.py Co-authored-by: Beto Dealmeida <roberto@dealmeida.net> Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
SUMMARY
There are some errors on db connection ui when toggling on encryption, it would also get returned in the params field, and then would error when trying to turn off ssl with the toggle.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:
https://user-images.githubusercontent.com/5186919/129117204-42cd6021-647d-4c33-a4d1-eff56130b63c.mov
After:
https://user-images.githubusercontent.com/5186919/129117801-eb56b5fb-4767-427a-9f1d-3096fd353eab.mov
TESTING INSTRUCTIONS
edit a database, and toggle on/off ssl
ADDITIONAL INFORMATION