android-fhir
android-fhir copied to clipboard
PerResourceLocalChangeFetcher gives back incorrect total changes to be uploaded
Describe the bug When we use PerResourceLocalChangeFetcher combined with PerResourcePatchGenerator (in Uploader) we basically squash all the local changes per resource before uploading. So we can say there will as many upload requests as many unique resources in the LocalChange database. Hence the total requests in SyncUploadProgress should not fetch count of all the local change records but rather count of unique resources in LocalChange.
Component Core library, SDC library, reference app, or SDC gallery app
To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
- Device: [e.g. Pixel4a emulator]
- Android version: [e.g. Settings -> About phone -> Android version]
- Build number: [e.g. Settings -> About phone -> Build number]
- Version [e.g. 22]
Additional context Add any other context about the problem here.
Would you like to work on the issue? Please state if this issue should be assigned to you or who you think could help to solve this issue.