-
Notifications
You must be signed in to change notification settings - Fork 19
Provide a mechanism for conflict resolution during offline sync operations #298
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
Comments
adrianhall
added a commit
to adrianhall/CommunityToolkit-Datasync
that referenced
this issue
Mar 28, 2025
adrianhall
added a commit
to adrianhall/CommunityToolkit-Datasync
that referenced
this issue
Mar 28, 2025
…ity options in the builder.
Added an |
adrianhall
added a commit
to adrianhall/CommunityToolkit-Datasync
that referenced
this issue
Mar 31, 2025
…ra problematic round trip when server wins is chosen.
adrianhall
added a commit
that referenced
this issue
Apr 4, 2025
Completed as #325 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When the service responds with a conflict during offline operations, that operation is permanently failed, leaving the developer with a problem on how to deal with it.
Suggested API involves the entity setup. Inside the offline client builder, allow developers to add a conflict resolver. Suggested interface:
The response is a conflict result, which has values that can be used to determine the result of the conflict resolution - either Succeeded, UserInputRequired, etc.
Then provide a “DefaultConflictResolver” (which would be userinputrequired) “ClientSideWinsConflictResolver” and “ServerSideWinsConflictResolver” (probably need better names) that provide unattended conflict resolution.
The conflictresult (instead of the normal serviceresponse) would be added to the failed requests result if the conflict cannot be handled.
The text was updated successfully, but these errors were encountered: