Skip to content
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

Merged
merged 5 commits into from
Aug 21, 2019

Conversation

ShahAnuj2610
Copy link
Contributor

@ShahAnuj2610 ShahAnuj2610 commented Aug 20, 2019

fixes #1059 #1096

  • feat - add support in all range components for the prop includeNullValues

Copy link
Contributor

@bietkul bietkul left a 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) {
Copy link
Contributor

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) => {
Copy link
Contributor

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.

Copy link
Contributor Author

@ShahAnuj2610 ShahAnuj2610 Aug 21, 2019

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); }

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

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) => {
Copy link
Contributor

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?

@ShahAnuj2610
Copy link
Contributor Author

@bietkul can rename includeNullValues param in func to includeUnrated

@bietkul bietkul merged commit f852667 into next Aug 21, 2019
@bietkul bietkul deleted the feature/drs/include-null-values branch August 21, 2019 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do not apply pristine range filters
2 participants