-
Notifications
You must be signed in to change notification settings - Fork 0
Try/remote post hash #5
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
base: feature/conflict-resolution-dialog
Are you sure you want to change the base?
Conversation
If we check if the post has a revision first the yellow revision color will be applied.
This is to persistently save a hash of the last remote update received in order to tell when an update has new content.
The logic previously here was extract to a separate class so other objects can utilize the hashing logic previously within this AbstractPost extension.
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 @Deco354. Right now this PR doesn't let me test the changes without first merging the changes in WordPressKit from your other PR.
Can you adjust the podfile so this PR can be tested using the modifications of WordPressKit before merging them?
Thanks!
These can now be found within SHAHasher.m
diegoreymendez
left a comment
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.
@Deco354 - I just tried running the first test case, but I'm getting a crash. From what I could see it's related to one of the changes in this PR.
Can you check it out?
|
Ah thank you nice catch. |

Part of Conflict Resolution Dialog Issue
DO NOT MERGE
Blocked awaiting WordPressKit PR enabling RemotePost hashing.
Description
At present we check whether a remote post has been updated by checking its
dateModifiedproperty. This isn't a fool proof method of checking this so the hashing logic withinAbstractPosthas been extracted so it can be used byRemotePostwithin WordPressKit.This PR
lastRemoteUpdateHashlastRemoteUpdateHashlastRemoteUpdateHashAbstractPostto use the newSHAHasherclass within WordPressKitBasic Test cases
1. Local Autosave Draft vs Remote Update
Reproduction Steps
Desired outcomes:
2. Local Autosave Publication vs Remote Update
Reproduction Steps
Desired Outcome
3. Remote autosave vs Local Autosave Draft
Reproduction Steps
Desired Outcome
PR submission checklist:
RELEASE-NOTES.txtif necessary.