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
Uploaded draft post differs from local draft #310
Comments
Unable to reproduce this. Maybe the post list had started syncing before editing the draft, and finished after the draft was edited. @koke thoughts on this? |
Thanks for looking this, @aerych. I'm on a really slow connection in Cambodia. The speed test in the Ookla test app reads a ping of 40ms, download of 0.40 mbits and upload of 0.82 mbits :/ (ave of 3 runs) |
From Post *newPost = [Post findOrCreateWithBlog:self andPostID:postID];
if (newPost.remoteStatus == AbstractPostRemoteStatusSync) {
[newPost updateFromDictionary:postInfo];
} So we won't overwrite a post unless it's synced, but that doesn't check if it's being edited. One possible scenario:
So the edit check is not really the problem. We're updating the post with data that is already too old. We probably should start checking |
@AndrewFreemantle - have you hit this issue on the latest version of the app (3.9.1)? |
@sendhil - yes. I find that refreshing the list of posts is also hit and miss, and I've taken to refreshing the list at least 3 times before I have any level of confidence that the version of any given post (especially Draft ones) matches the version on the server. Still not working as expected in 4.0.1 - sorry :o/ |
Hey @AndrewFreemantle - sorry to hear you are still having problems with this : (. I'll try and take a peek at this later this week. |
It might be helpful to know that our WP server is in the UK (timezone set to GMT) and I'm currently in Japan (timezone set local automatically by iOS) - maybe it's a timezone thing? |
Hmmm, @astralbodies didn't you bump into something similar to this a few months back? |
Closing issue and migrating to new repo. |
To reproduce:
Edit a draft post, changing some content.
Update content changes (post is still draft).
Once the updating spinner has disappeared, tap the same draft post to edit - the post shows the content 'before' the edit (!)
It appears that refreshing the posts list pulls the changes down.
[App: v3.8.3; self-hosted WP: v3.7.1]
The text was updated successfully, but these errors were encountered: