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

chore: Propagate includeDeleted through relationships [DHIS2-18883] #19919

Merged
merged 1 commit into from
Feb 17, 2025

Conversation

enricocolasante
Copy link
Contributor

@enricocolasante enricocolasante commented Feb 13, 2025

Propagate includeDeleted params from any entity service to RelationshipService to include soft-deleted relationshipItems when includeDeleted is true.

Next steps

  • Fix isDeleted check in OperationsParamsValidator
  • Check if we can remove isDeleted check from RelationshipService
  • Serve multiple and single tracked entities using the same path
  • Pass field params to RelationshipService in order to only retrieve from the DB what is needed.
  • Changing the test input to use the view model in relationship tests

@enricocolasante enricocolasante marked this pull request as ready for review February 17, 2025 10:51
@enricocolasante enricocolasante requested a review from a team as a code owner February 17, 2025 10:51

JsonList<JsonRelationship> jsonRelationships =
GET(
"/tracker/enrollments?enrollments={id}&fields=*&includeDeleted=false",
Copy link
Contributor

Choose a reason for hiding this comment

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

Our tests should probably also only ask for what they need in the fields to make them as slow as necessary 😅

@enricocolasante enricocolasante merged commit 68ffdfb into master Feb 17, 2025
17 checks passed
@enricocolasante enricocolasante deleted the DHIS2-18883 branch February 17, 2025 14:16
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.

3 participants