-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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: Verify when null value should be undefined in Select #17013
Conversation
@michael-s-molina for clarity, this is just a safety check for now. Ideally, we should go through each configuration object of the SelectControl in superset and superset-ui and remove the |
@geido Can't this check/conversion be made in |
…select-column-empty-value
For reference, we have agreed with Michael that this safety check will be done in |
@michael-s-molina I just updated the PR. Please have a look |
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
Codecov Report
@@ Coverage Diff @@
## master #17013 +/- ##
==========================================
- Coverage 76.94% 76.93% -0.01%
==========================================
Files 1030 1030
Lines 55088 55098 +10
Branches 7480 7484 +4
==========================================
+ Hits 42385 42392 +7
- Misses 12452 12455 +3
Partials 251 251
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
* Check for null value * Safety chek SelectControl and SelectAsyncControl
🏷 v1.4 |
* Check for null value * Safety chek SelectControl and SelectAsyncControl
* Check for null value * Safety chek SelectControl and SelectAsyncControl
SUMMARY
This PR fixes an edge case with the Select component. With dynamic controls there might be the case where a default value is being passed as
null
when it was intended to beundefined
. This change makes sure that anull
value that is not available in the options is considered asundefined
instead.BEFORE
AFTER
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION