Skip to content
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 #22282

Merged
merged 11 commits into from
Jan 10, 2024

Conversation

dcalhoun
Copy link
Member

@dcalhoun dcalhoun commented Dec 23, 2023

Related

Description

Pause media upload when internet connection is unavailable.

Testing Instructions

See WordPress/gutenberg#56937.

Regression Notes

  1. Potential unintended areas of impact
    Disrupting successful media uploads, breaking other media block types.
  2. What I did to test those areas of impact (or what existing automated tests I relied on)
    Uploaded media to various block types.
  3. What automated tests I added (or what prevented me from doing so)
    No, opted to test the JavaScript logic instead.

PR submission checklist

  • I have completed the Regression Notes.
  • I have considered adding unit tests for my changes.
  • I have considered adding accessibility improvements for my changes.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

UI Changes testing checklist:

  • Portrait and landscape orientations.
  • Light and dark modes.
  • Fonts: Larger, smaller and bold text.
  • High contrast.
  • VoiceOver.
  • Languages with large words or with letters/accents not frequently used in English.
  • Right-to-left languages. (Even if translation isn’t complete, formatting should still respect the right-to-left layout)
  • iPhone and iPad.
  • Multi-tasking: Split view and Slide over. (iPad)

@dcalhoun dcalhoun added Media Gutenberg Editing and display of Gutenberg blocks. labels Dec 23, 2023
When internet connection is unavailable, pause the upload rather than
marking it as failed.
@dcalhoun dcalhoun force-pushed the feat/update-image-block-upload-visuals branch from c7447db to f861e30 Compare December 23, 2023 12:40
@dcalhoun dcalhoun changed the base branch from trunk to feat/automatically-retry-pending-media-uploads December 23, 2023 12:40
@dcalhoun dcalhoun added this to the 24.0 milestone Dec 23, 2023
@wpmobilebot
Copy link
Contributor

wpmobilebot commented Dec 23, 2023

WordPress Alpha📲 You can test the changes from this Pull Request in WordPress Alpha by scanning the QR code below to install the corresponding build.
App NameWordPress Alpha WordPress Alpha
ConfigurationRelease-Alpha
Build Numberpr22282-ab745fc
Version24.0
Bundle IDorg.wordpress.alpha
Commitab745fc
App Center BuildWPiOS - One-Offs #8404
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Dec 23, 2023

Jetpack Alpha📲 You can test the changes from this Pull Request in Jetpack Alpha by scanning the QR code below to install the corresponding build.
App NameJetpack Alpha Jetpack Alpha
ConfigurationRelease-Alpha
Build Numberpr22282-ab745fc
Version24.0
Bundle IDcom.jetpack.alpha
Commitab745fc
App Center Buildjetpack-installable-builds #7427
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.

Base automatically changed from feat/automatically-retry-pending-media-uploads to trunk December 27, 2023 02:33
Prevent conflicting media upload statuses by applying the paused media
upload logic in additional locations.
@dcalhoun dcalhoun marked this pull request as ready for review January 4, 2024 21:18
@dcalhoun dcalhoun requested a review from derekblank January 4, 2024 21:18
Copy link
Contributor

@derekblank derekblank left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. 🚀

This is necessary to get up to date with a CI configuration change that
requires running on Xcode 15.1.

See #22270
@mokagio
Copy link
Contributor

mokagio commented Jan 8, 2024

Hey @dcalhoun 👋 You might notice a merge trunk commit here from me. That is to bring this branch up to date with the latest CI changes on trunk and ensure everything works on the new Xcode 15.1 CI stack.

Don't hesitate to ping me if there's any trouble.

derekblank and others added 3 commits January 10, 2024 15:28
The Podfile.lock changes in the branch were unexpected and causing CI
failures.

This changeset was created by the following:

```
git checkout origin/trunk -- Podfile.lock
bundle install
bundle exec pod install
```
@dcalhoun dcalhoun merged commit 7298d9c into trunk Jan 10, 2024
20 of 22 checks passed
@dcalhoun dcalhoun deleted the feat/update-image-block-upload-visuals branch January 10, 2024 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gutenberg Editing and display of Gutenberg blocks. Media
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modify Image block visuals during offline uploads
4 participants