-
Notifications
You must be signed in to change notification settings - Fork 302
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
Introduce Patches: changes to be uploaded to the server #2156
Conversation
engine/src/main/java/com/google/android/fhir/sync/upload/UploaderImpl.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.
LGTM
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.
This change is so good!
engine/src/main/java/com/google/android/fhir/sync/upload/patch/PerResourcePatchGenerator.kt
Show resolved
Hide resolved
engine/src/main/java/com/google/android/fhir/sync/upload/patch/PatchGenerator.kt
Show resolved
Hide resolved
engine/src/main/java/com/google/android/fhir/sync/upload/patch/PerChangePatchGenerator.kt
Show resolved
Hide resolved
engine/src/main/java/com/google/android/fhir/sync/upload/patch/PerChangePatchGenerator.kt
Outdated
Show resolved
Hide resolved
engine/src/main/java/com/google/android/fhir/sync/upload/SquashedChangesUploadWorkManager.kt
Outdated
Show resolved
Hide resolved
engine/src/main/java/com/google/android/fhir/sync/upload/UploadWorkManager.kt
Outdated
Show resolved
Hide resolved
engine/src/main/java/com/google/android/fhir/sync/upload/SquashedChangesUploadWorkManager.kt
Outdated
Show resolved
Hide resolved
engine/src/main/java/com/google/android/fhir/sync/upload/request/IndividualRequestGenerator.kt
Outdated
Show resolved
Hide resolved
engine/src/main/java/com/google/android/fhir/sync/upload/request/IndividualRequestGenerator.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.
GREAT change! just some uber nits
IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).
Description
Introduce the concept of Patch, which is the changes to be sent to the server. More specifically:
Patch
class, which is very similar to theLocalChange
class at the momentPatch
esPatches
UploadWorkManager
functiongetPendingUploadsIndicator
and inline its implementation, paving the way for removingUploadWorkManager
altogetherRemaining issues:
Alternative(s) considered
Have you considered any alternatives? And if so, why have you chosen the approach in this PR?
Type
Feature
Screenshots (if applicable)
Checklist
./gradlew spotlessApply
and./gradlew spotlessCheck
to check my code follows the style guide of this project../gradlew check
and./gradlew connectedCheck
to test my changes locally.