-
Notifications
You must be signed in to change notification settings - Fork 358
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
muilpp
wants to merge
31
commits into
master
Choose a base branch
from
DHIS2-15954-filter-events-by-DE-existence
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
613859b
feat: Filter events by existing data element [DHIS2-15954]
muilpp 06269e3
feat: Filter events by existing data element [DHIS2-15954]
muilpp 1ddbce8
feat: Avoid using dataElements map when sorting DEs [DHIS2-15954]
muilpp f19e3be
feat: Add order fields in select clause from params order [DHIS2-15954]
muilpp 2315c98
feat: Replace params for order list in method signature [DHIS2-15954]
muilpp edb8750
feat: Fix data element tests [DHIS2-15954]
muilpp da9c871
feat: Filter events by DE existence in event [DHIS2-15954]
muilpp 0187a04
feat: Assure EX operator is used only once in DE filter [DHIS2-15954]
muilpp 96625e5
feat: Filter by DE when fetching event file [DHIS2-15954]
muilpp 0e0afad
feat: Merge statements [DHIS2-15954]
muilpp 2b83bc0
feat: Improve error message [DHIS2-15954]
muilpp 37bbc74
Merge remote-tracking branch 'origin/master' into DHIS2-15954-filter-…
muilpp c31ec3e
feat: Add test to verify mapping logic [DHIS2-15945]
muilpp cdaf3ef
feat: Add test to verify mapping logic [DHIS2-15945]
muilpp bad030e
feat: Replace operator enum value [DHIS2-15945]
muilpp 91a898f
feat: Introduce tracker unary operators [DHIS2-15945]
muilpp 036b459
feat: Introduce tracker unary operators (2) [DHIS2-15945]
muilpp edc5a56
feat: Check for null operator [DHIS2-15945]
muilpp 768adbf
feat: Save unary operators in working list [DHIS2-15945]
muilpp 06cfe93
feat: Use is null instead of jsonb specific ?? operator [DHIS2-15945]
muilpp b999c40
feat: Add test to validate filter with UID only is mapped [DHIS2-15945]
muilpp b551f7b
feat: Add program stage working list controller test [DHIS2-15945]
muilpp 686963d
feat: Rename fields in EventDataFilter [DHIS2-15945]
muilpp 72dd62a
feat: Test !null operator in WL controller [DHIS2-15945]
muilpp f00fa90
feat: Improve filter parsing [DHIS2-15945]
muilpp 8f67dc3
Merge branch 'master' into DHIS2-15954-filter-events-by-DE-existence
muilpp a3b7b41
Merge branch 'master' into DHIS2-15954-filter-events-by-DE-existence
muilpp aab93bb
feat: Remove option set join when fetching events [DHIS2-15945]
muilpp 6afd0f6
Merge remote-tracking branch 'origin/DHIS2-15954-filter-events-by-DE-…
muilpp c3c1d81
feat: Remove option value join [DHIS2-15954]
muilpp 9fb70d0
feat: Remove unused param [DHIS2-15954]
muilpp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 thought this is going to be a boolean? 🤔
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.
yes but didn't we say we only want to store it when it's true?
if it was a boolean, it'd be false by default and stored in the database
if it's a String, we can just set it to null by default, so it'll be excluded by Jackson, unless we explicitly set it to "true"
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.
@enricocolasante maybe I misremember 😅
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.
Didn't we agree that we accept any value there?
{"null": [ANYTHING_BUT_NULL]}
?Then when saving we remove the value there and use
true
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.
That's what we said, but just a nuance: if we set it to true (boolean), it means that by default, it will be set to false, and Jackson will serialize both cases.
If we set it to "true" (string), then by default, it's null, and Jackson omits it.