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-18571] add explicit pageSize=100 to fetch all enrollments #3942

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

Conversation

eirikhaugstulen
Copy link
Contributor

This PR fixes a bug where the enrollment completion modal was showing incorrect counts due to API pagination limits. The fix adds an explicit pageSize=100 parameter to the API request to ensure all enrollments are fetched.

Changes:

Added pageSize=100 parameter to the tracker/trackedEntities API request in useCompleteBulkEnrollments.js

localhost_3000_235837

@eirikhaugstulen eirikhaugstulen requested a review from a team as a code owner January 17, 2025 00:09
Copy link
Contributor

@henrikmv henrikmv left a comment

Choose a reason for hiding this comment

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

The Complete modal appears to be working fine now, Eirik. Great job!
It looks like the Delete modal could use some attention as well.

image

@simonadomnisoru
Copy link
Contributor

Hi @eirikhaugstulen. The same issue is happening when bulk-completing events, does it make sense to solve it in PR as well?
https://github.com/user-attachments/assets/0aa7d8f0-f6a0-4b7d-a7b0-dcca56ca93c1
Thank you!

@eirikhaugstulen
Copy link
Contributor Author

@simonadomnisoru Thanks! Updated now!
(I hopefully have gone over all actions now, but let me know if you run into anything)

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