-
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: Pause media upload when internet connection unavailable #19878
Merged
Merged
Changes from 16 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
4107505
feat: Failed uploads while offline communicate paused state
dcalhoun a929e1f
build: Update Gutenberg ref
dcalhoun 04af69f
build: Fix incorrect Gutenberg PR reference
dcalhoun 578ee6a
build: Fix incorrect Gutenberg PR reference
dcalhoun b22021a
Add discrete onMediaUploadPaused handler to media uploads when offline
derekblank d8a7bff
refactor: Fix parameter name typo
dcalhoun 8d46802
refactor: Annotate override of `onMediaUploadPaused` method
dcalhoun 8ed6850
refactor: Remove unused `onMediaUploadFailed` error type parameter
dcalhoun ad1ca04
feat: Aztec `onMediaUploadPaused` passes onto `onMediaUploadFailed`
dcalhoun 594f989
feat: Only consider failed media uploads to be paused
dcalhoun 00df84c
feat: Track failed media upload event when pausing media uploads
dcalhoun b1f7e3b
feat: When lacking connectivity, pause completed upload w/o remote URLs
dcalhoun 2a5075d
Merge pull request #19884 from wordpress-mobile/feat/update-image-blo…
dcalhoun 51d141b
docs: Add release note
dcalhoun 4c92efe
Merge branch 'trunk' of github.com:wordpress-mobile/WordPress-Android…
dcalhoun b97dbec
build: Update Gutenberg ref
dcalhoun 92c2b99
Merge branch 'trunk' into feat/update-image-block-upload-visuals
derekblank eb6ccca
Merge branch 'trunk' of github.com:wordpress-mobile/WordPress-Android…
dcalhoun e3ad26b
build: Update Gutenberg ref
dcalhoun 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
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.
This will still send an
EDITOR_UPLOAD_MEDIA_FAILED
event to analytics when the upload is paused. I believe we'd want to remove these lines, but wanted to double check.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.
My thought is that we should still track these as errors (or, at least, track something). I referenced this in #19884 (comment). I imagine knowing the rate of this event is still useful for analysis.
Will you expand on why you think we should not?
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.
My reasoning was that it might incorrectly affect the metrics outlined in the pitch, which were aiming to reduce instances of
media_service_upload_failed
andmedia_service_upload_response_error
. I haven't yet checked to see ifmedia_service_upload_failed
results are actually affected byanalyticsTrackerWrapper.track(EDITOR_UPLOAD_MEDIA_FAILED, properties)
, but it seems like it might be.When the media upload is paused, I think we would expect it to retry and continue when the connection is resumed. If the upload then reached a legitimate failure, it would be captured by
onMediaUploadFailed
, which would fire the analytics failed event. Does that sound correct?Either way, I don't think it should be a blocker for this PR. I've created an issue on the project board to discuss adding a paused analytics event.
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 elaborating. Your rationale makes complete sense. I had not considered the impact on the planned project metrics.
I agree that we should follow up to remove or change this analytic event. We should also verify that the iOS implementation is correctly set up as well. I'll update your newly created issue to note this.