-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: ensure engine is outside parameters #14787
fix: ensure engine is outside parameters #14787
Conversation
5016072
to
1fe023b
Compare
serialized_encrypted_extra = data.get("encrypted_extra", "{}") | ||
try: | ||
encrypted_extra = json.loads(serialized_encrypted_extra) | ||
except json.decoder.JSONDecodeError: | ||
encrypted_extra = {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved this closer to where is needed, to prevent us from running this if not necessary.
1fe023b
to
8574282
Compare
Codecov Report
@@ Coverage Diff @@
## master #14787 +/- ##
==========================================
- Coverage 77.54% 77.30% -0.25%
==========================================
Files 962 962
Lines 49147 49148 +1
Branches 6182 6182
==========================================
- Hits 38111 37993 -118
- Misses 10832 10951 +119
Partials 204 204
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
* master: (163 commits) fix(native-filters): Manage default value of filters by superset (apache#14785) fix: Additional ResultSet tests (apache#14741) chore: added BasicParametersMixin to Redshift (apache#14752) fix: make dataset list sort case insensitive (apache#14528) fix: use encodeURIComponent when getting table metadata (apache#14790) fix: ensure engine is outside parameters (apache#14787) database modal should close on connect with tab layout (apache#14771) feat(native-filters): add search all filter options (apache#14710) fix: extra query in Dashboard when native filter enabled (apache#14770) chore: Improves the native filters UI/UX - iteration 2 (apache#14753) fix(native filters): Fix explore state (apache#14779) fix(explore): DndColumnSelect not handling controls with "multi: false" (apache#14737) feat: Create BigQuery Parameters for DatabaseModal (apache#14721) feat: enable user impersonation in GSheets (apache#14767) fix: add DB should not say it's Postgres (apache#14766) Revert "fix(dashboard): multiple query trigger when native filter enabled (apache#14734)" (apache#14762) feat: save database with new dynamic form (apache#14583) fix: save non-parameter DBs (apache#14759) chore: Removes ColorSchemeControl.less (apache#14199) fix(explore): Icons width (apache#14717) ...
SUMMARY
In the new database modal flow we have 2 different flows:
test_connection
, add/edit DB) we expectengine
insideparameters
.validate_parameters
) it should be outside.It's better to have a consistent way, and it's also better to have engine outside of parameters, so I fixed the old APIs to support both initially, to prevent breaking the frontend. Later we can remove support for passing
engine
insideparameters
and only accept it outside.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
N/A
TESTING INSTRUCTIONS
Tested manually.
ADDITIONAL INFORMATION