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

fix: [DHIS2-18527] (2.40) Fix deleted relationship getting returned in event #19397

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

ameenhere
Copy link
Contributor

In event fetching API ( api/tracker/event/{uid} ) , when includeRelationship is set to true. The service fetches all relationships without respecting the deleted flag.

This PR corrects this.

In collection event fetching API ( api/tracker/events=event={uid} ) this issue does not exist.

Copy link

sonarqubecloud bot commented Dec 6, 2024

Copy link
Contributor

@muilpp muilpp left a comment

Choose a reason for hiding this comment

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

just curious... it is possible to request deleted event relationships?
I know in other endpoints there's the parameter includeDeleted, not sure if it exists here too. If it does, I wonder if this logic would effectively disable that parameter.

@ameenhere ameenhere merged commit 6560b17 into 2.40 Dec 6, 2024
14 checks passed
@ameenhere ameenhere deleted the DHIS2-18527_2.40 branch December 6, 2024 15:01
@ameenhere
Copy link
Contributor Author

ameenhere commented Dec 11, 2024

just curious... it is possible to request deleted event relationships? I know in other endpoints there's the parameter includeDeleted, not sure if it exists here too. If it does, I wonder if this logic would effectively disable that parameter.

@muilpp Good point Marc! I had forgotten about that and did not find any references for includeDeleted in the relationships area. It could be that that parameter was never respected in the relationship side of things so far. I'll create a separate jira issue to track/test that 👍 Thanks!

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