-
Notifications
You must be signed in to change notification settings - Fork 120
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
Mutations Sync: Refactor and filter on current user #2237
Conversation
Two small bits of cleanup in the LocalMutationSyncWorker: 1. Move fetching of mutations eligible for retry into the mutations repository 2. Only sync mutations associated with the current authenticated user. Also adds a new test to validate (2.). Progress toward issue google#2235.
ground/src/main/java/com/google/android/ground/persistence/sync/MediaUploadWorker.kt
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! One nit, and some checks are failing, otherwise LGTM!
ground/src/main/java/com/google/android/ground/persistence/sync/LocalMutationSyncWorker.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, sorry for the delay!
Looks like there are detekt errors to correct. |
@gino-m FYI should be good to go, holding off on merging just to be sure we manage these correctly before cutting a release |
@gino-m FYI — since this is pretty stale, I'm going to close it for now. We can reopen if needed! |
Two small bits of cleanup in the LocalMutationSyncWorker:
Also adds a new test to validate (2.). Progress toward issue #2235.
@gino-m