Skip to content

Image block - Update image url #2652

Merged
geriux merged 2 commits intodevelopfrom
fix/image-url-block-not-selected
Sep 25, 2020
Merged

Image block - Update image url #2652
geriux merged 2 commits intodevelopfrom
fix/image-url-block-not-selected

Conversation

@geriux
Copy link
Copy Markdown
Contributor

@geriux geriux commented Sep 22, 2020

Fixes WordPress/gutenberg#25418

Gutenberg PR -> WordPress/gutenberg#25529

An issue was reported of the Image block not keeping its image size after duplicating, after some investigation it turns out that if the block is not selected while an upload is in process it won't request the image data, sizes, and resized URL when it finishes.

On the web editor, it works differently because when the post request is made to upload the image it returns the resized URL and data, where in mobile it just returns the full size URL of the image.

This PR handles the case of updating the final resized URL of the image when the block is not selected and there's an ongoing upload.

To test check the Gutenberg PR description.

PR submission checklist:

  • I have considered adding unit tests where possible.
  • I have considered if this change warrants user-facing release notes more info and have added them to RELEASE-NOTES.txt if necessary.

@geriux geriux added the bugfix label Sep 22, 2020
@geriux geriux added this to the 1.38 milestone Sep 22, 2020
@geriux geriux requested a review from chipsnyder September 22, 2020 10:00
Copy link
Copy Markdown
Contributor

@chipsnyder chipsnyder left a comment

Choose a reason for hiding this comment

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

@peril-wordpress-mobile
Copy link
Copy Markdown

Wanna run full suite of Android and iOS UI tests? Click here and 'Approve' CI job!

@geriux geriux merged commit ecb1c5c into develop Sep 25, 2020
@geriux geriux deleted the fix/image-url-block-not-selected branch September 25, 2020 10:52
@cameronvoell cameronvoell mentioned this pull request Sep 29, 2020
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicating an Image block not working consistently

2 participants