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: Filter events by DE existence in event [DHIS2-15954] #19778

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

muilpp
Copy link
Contributor

@muilpp muilpp commented Jan 27, 2025

Part 2

Continuing the work started in part 1, this PR adds a new EX operator, which filters events based on whether a specified data element has a value.

The EX operator accepts either true or false. If true, it filters events where the data value exists; if false, it filters events where the data value does not exist.

When the EX operator used, no other operator is allowed for the same UID.

Previously, the parsing logic for filters was shared between attributes and data elements. To accommodate the new behavior, I had to split it so that it applies only to data elements.

@muilpp muilpp marked this pull request as ready for review January 29, 2025 14:45
@muilpp muilpp requested a review from a team as a code owner January 29, 2025 14:45
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.

1 participant