google / google/ground-android

[Survey sync] Wrap sync in a transaction so survey and LOI download is atomic

Open
#1,591 1 comment 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.