-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: object list special filter queries [DHIS2-17200] (#19046)
* fix: non-standard object list queries [DHIS2-17200] * fix: users may use standard pager * refactor: special filters as pre-stage query for ids * chore: revert now unnecessary change * refactor: use query filters for OU special params * fix: failing integration test causes * refactor: parameter objects for getObject and getObjectList * fix: dependency issues * fix: params in tests * fix: don't order count query, use getFieldName() for properties in criteria API * fix: fields parameter and filter and order parameter mapping * fix: strip regex from path variables for path * fix: filter parameter splitting * refactor: always use AbstractCrudController with list params parameter * refactor: always use object list parameter for read-only CRUD controller * fix: broken superclass and import * fix: add missing @EntityType definitions when/where used * fix: metadata import service * fix: filters on getObject * fix: dimension controller issues * fix: maven dependencies * fix: attempt to disable dependency analzye run for e2e tests * fix: sonar issues and add tests * fix: always add sorting and cache hints in JPA query engine * fix: more sonar issues * refactor: user special filters as UID pre-query, checked exceptions in filter creation * fix: query user IDs * fix: user query for IDs and always false detection * fix: sonar TODOs and issues * fix: in operator with empty value list is always false * chore: cleanup OU special filters * fix: code scanning alert no. 9132: User-controlled data in arithmetic expression Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
- Loading branch information
1 parent
fba91c2
commit d2b80a5
Showing
135 changed files
with
1,615 additions
and
1,807 deletions.
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
File renamed without changes.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,4 +30,13 @@ | |
/** | ||
* @author Morten Olav Hansen <[email protected]> | ||
*/ | ||
public interface Criterion {} | ||
public interface Criterion { | ||
|
||
/** | ||
* @return true, when the condition cannot match any rows, e.g. an in-operator with an empty | ||
* collection to test against | ||
*/ | ||
default boolean isAlwaysFalse() { | ||
return false; | ||
} | ||
} |
Oops, something went wrong.