-
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
feat(ssh_tunnel): Rename allow_ssh_tunneling and change the default value to False #22723
feat(ssh_tunnel): Rename allow_ssh_tunneling and change the default value to False #22723
Conversation
Codecov Report
@@ Coverage Diff @@
## master #22723 +/- ##
==========================================
- Coverage 67.13% 65.59% -1.54%
==========================================
Files 1869 1869
Lines 71656 71658 +2
Branches 7822 7822
==========================================
- Hits 48103 47006 -1097
- Misses 21526 22625 +1099
Partials 2027 2027
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
superset/db_engine_specs/base.py
Outdated
@@ -193,7 +193,7 @@ class BaseEngineSpec: # pylint: disable=too-many-public-methods | |||
engine_aliases: Set[str] = set() | |||
drivers: Dict[str, str] = {} | |||
default_driver: Optional[str] = None | |||
allow_ssh_tunneling = False | |||
allow_ssh_tunneling = True |
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.
This is kind of a nit, but I think your first inclination to make the default value False
was a good one and follows convention. Can we instead flip the behavior, so something like disable_ssh_tunneling = False
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.
Oh! Ok, yeah, makes sense, let me change it
- Change the default value of allow_ssh_tunneling flag so it's always true except for those DB engines we know it's not supported
- Change the allow_ssh_tunneling for disable_ssh_tunneling to follow convention as before when the flag was set by default to false
472df8d
to
044e51c
Compare
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.
looks great, thanks @Antonio-RiveroMartnez!
SUMMARY
allow_ssh_tunneling
flag so it's nowdisable_ssh_tunneling
, always false except for those DB engines we know it's not supported (Amazon Athena, GSheets and BigQuery so far)BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION