Skip to content

Generate test-and-set patch jsons #38

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

Open
mcandeia opened this issue Aug 9, 2016 · 1 comment
Open

Generate test-and-set patch jsons #38

mcandeia opened this issue Aug 9, 2016 · 1 comment

Comments

@mcandeia
Copy link

mcandeia commented Aug 9, 2016

How I can add test operations before remove or replace operations ?
Looking for implementation of test (DiffProcessor) but I didnt find him, It can solve some problems called "lost update".

The lost update problem has been present in most distributed authoring environments using rudimentary HTTP/1.0 features. The lost update problem can be illustrated as follows:

  1. Ron accesses document X using HTTP GET and starts editing it.
  2. Shirley also accesses document X using HTTP GET and starts editing it.
  3. Ron saves his edits.
  4. Shirley saves her edits but as she didn't see Ron's edits, they are lost in the operation.

Using test on old properties it can be solved (or ETAG, but test is most effective).

A custom diffprocessor can solve this problem

@virmundi
Copy link

I think your issue is application specific. Your app needs to track how it wants to version. In your instance, you'd have to get from your data store based on a version. If the version in the store is different than the version provided by the user with the patch operation, the app has to kick in. For example, Shirley's change might need to get rejected by the server. The UI then needs to notifier her that her changes are rejected and she needs to merge manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants