-
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(native-filters): apply default value correctly when it's set #17982
Conversation
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 - also wondering if there is another instance of this bug a few lines above?
@@ -139,8 +139,6 @@ const dataMaskReducer = produce( | |||
action.filterConfig ?? [], | |||
cleanState, | |||
draft, | |||
// @ts-ignore | |||
action.data.dataMask, |
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.
Do we have the same issue on line 134?
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.
No, in line 134 action
object does have data.dataMask
field.
Codecov Report
@@ Coverage Diff @@
## master #17982 +/- ##
=======================================
Coverage 67.08% 67.08%
=======================================
Files 1611 1611
Lines 64919 64919
Branches 6871 6871
=======================================
+ Hits 43548 43550 +2
+ Misses 19504 19499 -5
- Partials 1867 1870 +3
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.
Ok thanks; LGTM!
/testenv up |
@geido Ephemeral environment spinning up at http://35.161.196.81:8080. Credentials are |
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! Thanks for the fix
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
Ephemeral environment shutdown and build artifacts deleted. |
…che#17982) (cherry picked from commit 35f4c33)
🏷 2022.1 |
SUMMARY
Due to a mistake in passing arguments to
dataMask/reducer/fillNativeFilters
function (we were passing undefined variable instead of data mask), default value wasn't applied correctly to native filters. This PR fixes this issue.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before: see linked issue
After:
Screen.Recording.2022-01-10.at.13.30.50.mov
TESTING INSTRUCTIONS
Follow the repro steps from linked issue
ADDITIONAL INFORMATION
CC @jinghua-qa @rosemarie-chiu @rusackas
https://app.shortcut.com/preset/story/34609/native-filter-filter-has-default-value-isn-t-applied-and-visible-after-save