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: Deduplicate new posts #23173
Conversation
Generated by 🚫 Danger |
📲 You can test the changes from this Pull Request in WordPress Alpha by scanning the QR code below to install the corresponding build.
|
📲 You can test the changes from this Pull Request in Jetpack Alpha by scanning the QR code below to install the corresponding build.
|
c45251e
to
74baced
Compare
48c46fa
to
016fea4
Compare
Hi @kean, can I get a re-review? Here's a video of setting a breakpoint on the posts/new response, then refreshing the list. It now works as expected. Screen.Recording.2024-05-09.at.11.05.44.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, works as expected, but I left two more small comments.
Thanks @kean - I've addressed your comments 🙇♀️ |
Tested:
The deduplication doesn't work for pages because the app doesn't send the metadata in that case, which is a production behavior. I think it might be worth fixing it separately (and in |
Fixes pe7hp4-N2-p2#comment-328
Description
How to test
Precondition: set a response breakpoint on
https://public-api.wordpress.com/rest/v1.2/sites/*/posts/new?context=edit&locale=en
Screen.Recording.2024-05-09.at.11.05.44.mov
Regression Notes
Potential unintended areas of impact
n/a
What I did to test those areas of impact (or what existing automated tests I relied on)
n/a
What automated tests I added (or what prevented me from doing so)
n/a
PR submission checklist:
RELEASE-NOTES.txt
if necessary.