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

treat null and blank the same in pre filters #28315

Merged
merged 2 commits into from Aug 11, 2020

Conversation

czue
Copy link
Member

@czue czue commented Aug 6, 2020

Implementation of https://github.com/dimagi/commcare-hq/pull/28313/files#r466225716 for discussion from @dimagi/product or others. Don't merge unless it's cleared.

SUMMARY

This treats prefilters against null the same as prefilters against empty strings.

FEATURE FLAG
RISK ASSESSMENT / QA PLAN

Main risk is that someone is actually relying on the fact that these are different.

PRODUCT DESCRIPTION

Some reports that are filtering on nulls may show more data. (I don't think this is worth announcing but worth noting in case it comes up via support)

Copy link
Contributor

@esoergel esoergel left a comment

Choose a reason for hiding this comment

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

This also feels in line with the changes introduced in #27710

combine null and empty choices in UCR / report builder filters

Co-authored-by: Daniel Miller <dmiller@dimagi.com>
@czue
Copy link
Member Author

czue commented Aug 7, 2020

Ok, I'm pretty convinced this is the right behavior. Will give the weekend for any other @dimagi/product people to weigh in and then plan to merge this on Tuesday. It's easy enough to revert back if it trips someone up.

@czue czue removed the Open for review: do not merge A work in progress label Aug 11, 2020
@czue czue merged commit b4e2253 into master Aug 11, 2020
@czue czue deleted the cz/treat-null-and-blank-the-same branch August 11, 2020 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product/all-users-all-environments Change impacts all users on all environments
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants