google / google/ground-android
[Survey sync] Wrap sync in a transaction so survey and LOI download is atomic
Open
type: code health
- Dominant language
- Kotlin
- Stars
- 293
- Forks
- 149
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 42
Description
If `activateSurvey` in `SurveyRepository` fails halfway through, local db may be left in an invalid state. We should either sync the survey and LOIs fully, or not at all. FCM messages should only be subscribed to when both are successfully completed.
Contributor guide
Assessment
This issue has not been assessed yet.