-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat: Retry failed media uploads when re-establishing network connection #19803
Merged
derekblank
merged 6 commits into
trunk
from
feat/automatically-retry-pending-media-uploads
Dec 28, 2023
Merged
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
0550cc5
feat: Retry failed media uploads when re-establishing network connection
dcalhoun be1c1f8
docs: Add release note
dcalhoun 47df150
feat: Limit automatic upload retries to debug builds
dcalhoun c114528
refactor: Remove unnecessary clearing of failed media IDs
dcalhoun 3fb85a3
feat: Only retry media uploads if a network connection is available
dcalhoun d459991
Merge branch 'trunk' into feat/automatically-retry-pending-media-uploads
derekblank File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Not sure clearing this is necessary, it does not appear to be done elsewhere, e.g.,
showRetryMediaUploadDialog
. This clear was added in an attempt to fix erroneously displayed errors after saving or publishing a post, but it does not appear to work.Error screenshot
Steps to reproduce
It appears as though a lingering error state/message is in place, but I am unable to find where that is or how to clear it. I expected
onMediaRetryAll
to clear it, but it doesn't appear to be doing so.👋🏻 @antonis. Randomly pinging you for Android expertise and help. 😄 Would you be willing to help me debug why I might see this error when the media attached to the post actually successfully uploads with the new retry logic?
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.
After testing the existing functionality of retrying failing media uploads via the dialog presented when tapping a failed image, it appears the lingering error message is a preexisting issue. Semi-related issues are reported in #11039, #15897, and #13427.
Steps to reproduce
Therefore, I do not consider this issue blocking. It'd be nice to resolve, but could be done so in a separate PR later.
@antonis please do not feel like it is a priority to help debug this. Thanks!
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.
Removing the clearing with c114528 and the reasoning for it sounds good 👍
I was able to reproduce this issue and tried to figure out why this happens. My understanding is that there is a limitation on how the
SnackbarSequencer
works were this kind of internal notifications are not really canceled once issued. I agree that this can be investigated further and handled in a follow up PR 👍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.
Thank you for investigating and sharing your insights and perspective. Very helpful! 🙇🏻♂️