-
Notifications
You must be signed in to change notification settings - Fork 6
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: asset not found download status [WPB-4989] #2250
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #2250 +/- ##
=============================================
- Coverage 57.93% 57.92% -0.02%
Complexity 21 21
=============================================
Files 1084 1084
Lines 41084 41093 +9
Branches 3801 3804 +3
=============================================
+ Hits 23803 23804 +1
- Misses 15657 15662 +5
- Partials 1624 1627 +3
... and 3 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Datadog ReportAll test runs ✅ 2 Total Test Services: 0 Failed, 0 with New Flaky, 2 Passed Test Services
|
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.
🙏🏻
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.
Small comment, great job ! 🍸
@@ -116,7 +118,15 @@ internal class GetMessageAssetUseCaseImpl( | |||
).fold({ | |||
kaliumLogger.e("There was an error downloading asset with id => ${assetMetadata.assetKey.obfuscateId()}") | |||
// This should be called if there is an issue while downloading the asset | |||
updateAssetMessageDownloadStatus(Message.DownloadStatus.FAILED_DOWNLOAD, conversationId, messageId) | |||
if (it is NetworkFailure.ServerMiscommunication && |
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.
There is a CoreFailure.isInvalidRequestError
helper, we might use I think
logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/asset/GetMessageAssetUseCase.kt
Outdated
Show resolved
Hide resolved
logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/asset/GetMessageAssetUseCase.kt
Outdated
Show resolved
Hide resolved
* chore: asset not found download status * review fixes * test fix
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?