-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
refactor(utils): replace strtobool with parse_boolean_string #14494
Conversation
4e8bc91
to
fcc9251
Compare
Codecov Report
@@ Coverage Diff @@
## master #14494 +/- ##
==========================================
- Coverage 77.12% 77.06% -0.06%
==========================================
Files 953 958 +5
Lines 48189 48242 +53
Branches 6051 6062 +11
==========================================
+ Hits 37166 37179 +13
- Misses 10822 10862 +40
Partials 201 201
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
LGTM
SUMMARY
When adding some boolean string parsing for #14483 , I figured we could use this in all places where
distutils.util.strtobool
is used to pick up some variations thatstrtobool
can't handle, like upper/mixedcase.This is the new util:
superset/superset/utils/core.py
Lines 1686 to 1715 in 68058b0
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TEST PLAN
ADDITIONAL INFORMATION