Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Conversation

@yaelirub
Copy link
Contributor

@yaelirub yaelirub commented Jun 21, 2019

Description

currently in the success block returned from wp.EditPost we have TODO to fetch the updated post, ostensibly the same way we do in the create method, and return it rather than the captured post.
This PR implements fetching the post.
On failure to fetch the post we do as we previously did and return the captured post.

Spun off of: wordpress-mobile/WordPress-iOS#11952 (comment)

  • Please check here if your pull request includes additional test coverage.

@yaelirub yaelirub requested review from aerych and removed request for aerych June 21, 2019 22:49
Added file for getPost since now we are calling that method from updatePost
Copy link
Contributor

@aerych aerych left a comment

Choose a reason for hiding this comment

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

Looks good! Ran tests and all pass. Tested the changes via wordpress-mobile/WordPress-iOS#11970 and was able to view previews from new drafts and when updating drafts.
:shipit: !

@yaelirub yaelirub merged commit 5a0b621 into develop Jun 24, 2019
@yaelirub yaelirub deleted the issue/fetch_post_on_successful_editPost branch June 24, 2019 21:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants