-
Notifications
You must be signed in to change notification settings - Fork 31
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
refactor(sync): allow concurrent sync start stop [WPB-15262] #3888
refactor(sync): allow concurrent sync start stop [WPB-15262] #3888
Conversation
…ager Replaced ConnectionPolicyManager with SyncLifecycleManager to streamline sync handling and improve lifecycle management. Updated associated services, tests, and application initialization to reflect the changes.
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3888 +/- ##
===========================================
+ Coverage 45.51% 45.58% +0.07%
===========================================
Files 491 491
Lines 17072 17066 -6
Branches 2853 2849 -4
===========================================
+ Hits 7770 7780 +10
+ Misses 8507 8491 -16
Partials 795 795
Continue to review full report in Codecov by Sentry.
|
Built wire-android-staging-compat-pr-3888.apk is available for download |
Built wire-android-dev-debug-pr-3888.apk is available for download |
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
Kalium is changing to allow concurrent sync start/stop. We need to address breaking changes on the app.
Solutions
Remove a lot of sensitive code and let Kalium figure it out.
Instead of having
ConnectionPolicyManager
to figure out if the connection policy can go up or down, we just make aSyncRequest
when needed.Most of the additions in this PR are for extra tests and inclusion of Fakes.
Considering that
ConnectionPolicy
doesn't exist anymore, this PR also changedConnectionPolicyManager
toSyncLifecycleManager
, which is only responsible for requesting Sync when a push notification comes, or when the app is on the foreground.It doesn't need to care about Persistent WebSocket anymore either, now that concurrent sync is possible.
The
PersistentWebsocketService
can request sync completely independently fromSyncLifecycleManager
.Dependencies
Needs releases with:
Testing
Test Coverage
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.