-
Notifications
You must be signed in to change notification settings - Fork 471
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(web): include includeNullValues
prop to handle sparse data
#1108
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.
Typings are missing for includeNullValues
in .ts
files for all the components.
@@ -134,13 +139,13 @@ class RatingsFilter extends Component { | |||
}, | |||
}; | |||
if (includeNullValues) { |
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 think we're already checking it in the util function.
@@ -129,23 +124,10 @@ class RatingsFilter extends Component { | |||
static defaultQuery = (value, props, includeNullValues = 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.
@ShahAnuj2610 Why includeNullValues
is the third argument?
We can access it from props
.
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, the third argument comes from the includeUnrated
in the data object
const handleUpdates = () => { this.updateQuery(value, props, includeUnrated); this.locked = false; if (props.onValueChange) props.onValueChange(value); }
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.
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.
But why you named it includeNullValues
?
@@ -129,23 +124,10 @@ class RatingsFilter extends Component { | |||
static defaultQuery = (value, props, includeNullValues = 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.
But why you named it includeNullValues
?
@bietkul can rename |
fixes #1059 #1096
includeNullValues