Skip to content

[Gutenberg] Send http status code to network error callback.#13119

Merged
etoledom merged 7 commits intodevelopfrom
issue/network-retry
Jan 31, 2020
Merged

[Gutenberg] Send http status code to network error callback.#13119
etoledom merged 7 commits intodevelopfrom
issue/network-retry

Conversation

@etoledom
Copy link
Copy Markdown
Contributor

gutenberg-mobile side PR: wordpress-mobile/gutenberg-mobile#1686

This PR ensures that the real http status code is returned on the network error callback.

To test:

PR submission checklist:

  • I have considered adding unit tests where possible.

  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@etoledom etoledom added the Gutenberg Editing and display of Gutenberg blocks. label Dec 16, 2019
@etoledom etoledom added this to the 14.0 milestone Dec 16, 2019
@etoledom etoledom self-assigned this Dec 16, 2019
@peril-wordpress-mobile
Copy link
Copy Markdown

peril-wordpress-mobile bot commented Dec 16, 2019

You can trigger an installable build for these changes by visiting CircleCI here.


private func dotComPath(with dotComID: NSNumber) -> String {
return path.replacingOccurrences(of: "/wp/v2/", with: "/wp/v2/sites/\(dotComID)/")
return path.replacingOccurrences(of: "/wp/v2/", with: "/wp/v2/sitesa/\(dotComID)/")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this correct: sitesa ?

Copy link
Copy Markdown
Contributor Author

@etoledom etoledom Dec 17, 2019

Choose a reason for hiding this comment

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

Oh no! I changed that to test the error code. Didn't change it back 😬
Fixed now!

@SergioEstevao SergioEstevao self-requested a review December 16, 2019 21:48
Copy link
Copy Markdown
Contributor

@SergioEstevao SergioEstevao left a comment

Choose a reason for hiding this comment

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

So using an WP.com atomic test site, I'm unable to see the image being loaded again after I come back online.

But I'm unable to change the image size settings, I see 4 options: Thumbnail, Medium, Large, Full, but when I select any of of the values I always get Large as result.

@etoledom
Copy link
Copy Markdown
Contributor Author

I'm unable to see the image being loaded again after I come back online.

This was probably because of the typo introduced in the path. Sorry about that!
It's ready now for another look 👍

Copy link
Copy Markdown
Contributor

@SergioEstevao SergioEstevao left a comment

Choose a reason for hiding this comment

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

Working great now! :shipit:

@loremattei loremattei modified the milestones: 14.0 ❄️, 14.1 Jan 13, 2020
@loremattei
Copy link
Copy Markdown
Contributor

Hey! I moved this to 14.1 because 14.0 has been cut. Please, ping me if you want it to make it to 14.0 😀

@loremattei loremattei modified the milestones: 14.1 ❄️, 14.2 Jan 27, 2020
@loremattei
Copy link
Copy Markdown
Contributor

Hey! I moved this to 14.2 because 14.1 has been cut. Please, ping me if you want it to make it to 14.1 😀

@etoledom etoledom merged commit 7234c58 into develop Jan 31, 2020
@etoledom etoledom deleted the issue/network-retry branch January 31, 2020 19:59
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants