-
Notifications
You must be signed in to change notification settings - Fork 26
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
chore: add handling NoNetworkConnection in image loader [WPB-3475] #2097
Conversation
…twork_in_image_loader # Conflicts: # kalium
Codecov Report
@@ Coverage Diff @@
## develop #2097 +/- ##
=============================================
+ Coverage 40.31% 40.35% +0.04%
- Complexity 952 956 +4
=============================================
Files 305 305
Lines 11290 11307 +17
Branches 1512 1516 +4
=============================================
+ Hits 4551 4563 +12
- Misses 6302 6307 +5
Partials 437 437
Continue to review full report in Codecov by Sentry.
|
APKs built during tests are available here. Scroll down to Artifacts! |
Build 1080 succeeded. The build produced the following APK's: |
…twork_in_image_loader # Conflicts: # kalium
APKs built during tests are available here. Scroll down to Artifacts! |
Build 1135 succeeded. The build produced the following APK's: |
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
Image loader needs to be adapter to handle
NoNetworkConnection
that comes as a response from the network module viaGetMessageAssetUseCase
.Solutions
Handle
NetworkFailure.NoNetworkConnection
inAssetImageFetcher
. Introduce aAssetImageRetryPolicy
with three values:RETRY_WHEN_CONNECTED
,EXPONENTIAL_RETRY_WHEN_CONNECTED
,DO_NOT_RETRY
, depending on the result returned by the use case. For "no connection" errors, just retry when there is a connection restored, for other server-related errors, also apply exponential delay (maybe there's a temporary problem on a server side so retrying right away doesn't make sense).Dependencies (Optional)
Needs releases with:
Testing
Test Coverage (Optional)
How to Test
Briefly describe how this change was tested and if applicable the exact steps taken to verify that it works as expected.
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.