remotestorage / remotestorage-ruby

A Rails based RemoteStorage server in Ruby. Works with remoteStorage.js 0.7. Adheres to RemoteStorage spec 2012.04
Other
23 stars 5 forks source link

Syncing questions #13

Open giorgio-v opened 11 years ago

giorgio-v commented 11 years ago

(Please note: I’ve already discussed some of these points on IRC, but I thought it was a better idea to open an issue here because it could be a specific problem or question about this implementation).

tl;dr

I’ve tried to induce a sync conflict but I haven’t been able to.

Details

At this point my expectation was to get a conflict. As far as I can see, A should recognize a mismatch between version 1, i.e. its local copy, and version 2 uploaded by B.

Questions

  1. The obvious one. Does my “test” prove anything? I suspect it’s conceptually flawed, but I don’t see where nor how
  2. If the test logic is sound, was it correctly set up, especially on the client side?
  3. Finally, looking at the rails application logs I don’t see how a conflict could be prevented since it checks only if a node with a given path is present. Please note that I don’t know rails: I just looked at the SQL statements. Is it the expected behavior?

Hope this helps (and I hope to gain some understanding, too!)

michielbdejong commented 11 years ago

@nilclass can you have a look at this?