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

Offline Mode: Switch to wp.editPost and wp.newPost #792

Merged
merged 3 commits into from
Apr 17, 2024

Conversation

kean
Copy link
Contributor

@kean kean commented Apr 16, 2024

Description

This PR switched to wp.editPost and wp.newPost, which are relatively new endpoints (but are still 10+ years old) with multiple bug fixes, and, most important, if_not_modified_since support.

Can be tested using wordpress-mobile/WordPress-iOS#23022 (comment)

ℹ Please replace the above with a link to the issue this pull request addresses, as well as a summary of the implementation details.

Testing Details

ℹ Please replace this with a clear and concise description of the steps required to validate this pull request.


  • Please check here if your pull request includes additional test coverage.
  • I have considered if this change warrants release notes and have added them to the appropriate section in the CHANGELOG.md if necessary.

@kean kean force-pushed the task/offline-mode-switch-wp-editpost branch 5 times, most recently from 39a2f3c to 46ee69c Compare April 16, 2024 15:14
@kean kean force-pushed the task/offline-mode-switch-wp-editpost branch from a1bfda6 to 24c835e Compare April 16, 2024 20:16
@@ -115,7 +115,7 @@ extension RemotePostCreateParameters {
if previous.tags != tags {
changes.tags = tags
}
if previous.categoryIDs != categoryIDs {
if Set(previous.categoryIDs) != Set(categoryIDs) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Making sure the order doesn't matter for the comparison.

@kean kean requested a review from momo-ozawa April 16, 2024 21:27
Copy link
Contributor

@momo-ozawa momo-ozawa 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 - can you mention these changes in the changelog? Thank you!

@kean
Copy link
Contributor Author

kean commented Apr 17, 2024

Updated changeling with all the recent PRs.

@kean kean enabled auto-merge April 17, 2024 11:05
@kean kean requested a review from momo-ozawa April 17, 2024 11:23
Copy link
Contributor

@momo-ozawa momo-ozawa left a comment

Choose a reason for hiding this comment

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

Thanks for updating the changelog! 🙇‍♀️

@kean kean merged commit 1c9aa7e into trunk Apr 17, 2024
9 checks passed
@kean kean deleted the task/offline-mode-switch-wp-editpost branch April 17, 2024 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants