-
Notifications
You must be signed in to change notification settings - Fork 293
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
Clean up SyncJobStatus and add FhirSynchronizer test #2184
Conversation
demo/src/main/java/com/google/android/fhir/demo/MainActivityViewModel.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.
Just this one comment, otherwise the change looks fine.
engine/src/test/java/com/google/android/fhir/sync/FhirSynchronizerTest.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.
the changes itself in this PR are net positive - so i'm happy for this to be merged :) and thanks so much omar for improving our code health!
but please create a new issue if you don't want to aditya's comment in this pr.
* Clean up SyncJobStatus and add FhirSynchronizer test * remove changes in MAVM * refactor more
* WIP * test cases * Adding resource UUID in LocalChangeEntity * fixing migration tests * returning resource UUID for insert resource * Clean up SyncJobStatus and add FhirSynchronizer test (#2184) * Clean up SyncJobStatus and add FhirSynchronizer test * remove changes in MAVM * refactor more * Consolidator done * review comments * adding more tests * fix failing test cases * Introducing LocalChangeReference * Adding LocalChangeDaoTest * WIP * added migration and tests for migration * updating kdoc * adding database migration * removing unused refs * json utils test * review comments * addressing review comments * resolving failing test case --------- Co-authored-by: Omar Ismail <[email protected]>
IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).
Fixes #2183
Description
SyncJobStatus.Started
andSyncJobStatus.Finished
objects as opposed to being instantiated each timeFhirSynchronizer.syncState
property that a caller can listen to without having to tellFhirSynchronizer
Alternative(s) considered
Have you considered any alternatives? And if so, why have you chosen the approach in this PR?
Type
Choose one: (Bug fix | Feature | Documentation | Testing | Code health | Builds | Releases | Other)
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.