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

Empty entity group criteria should match any occurrences #1009

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

tjennison-work
Copy link
Collaborator

The current behavior of empty entity group criteria is to returna null filter, which effetively ignores the criteria. Instead, empty entity group criteria should check for the existence of any matching occurrence (e.g. any conditionOccurence for a person in a condition criteria).

@@ -629,7 +628,13 @@ void criteriaWithAttrAndInstanceLevelAndGroupByModifiersCohortFilter() {

@Test
void emptyCriteriaCohortFilter() {
CFEntityGroup.EntityGroup config = CFEntityGroup.EntityGroup.newBuilder().build();
CFEntityGroup.EntityGroup config =
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: var name cfEntityGroup or entityGroup

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

The current behavior of empty entity group criteria is to returna null
filter, which effetively ignores the criteria. Instead, empty entity
group criteria should check for the existence of any matching
occurrence (e.g. any conditionOccurence for a person in a condition
criteria).
@tjennison-work tjennison-work merged commit 13df2e8 into main Sep 17, 2024
8 checks passed
@tjennison-work tjennison-work deleted the tj-empty branch September 17, 2024 14:10
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.

2 participants