Hi,

I have been working on resolving conflicts but from so far, I think I'm 
missing one step.

I'm currently running the Phonegap plugin on my devices with the Sync 
Gateway and the Couchbase Server.
I would like to manage the conflicts from the device.

I can do a GET with the "_changes" feed and the  “?style=all_docs” query 
parameter to retrieve all the docs with the conflicts as Jens is saying in 
this 
thread<https://groups.google.com/forum/#!searchin/mobile-couchbase/resolve$20conflict/mobile-couchbase/1HwBYVGKNRo/1d0Qkd_wlDQJ>.
 
Then, I can delete the revisions I don't want anymore making a PUT with the 
"_deleted" parameter to true like this:

window.config.site.db.get([id, {"rev" : rev}], function(err, doc){
doc._deleted = true;
window.config.site.db.put([id, {"rev" : rev}], doc, function(){})
});


But on the sync gateway and my other device, i have still the conflicts, so 
I guess there is something wrong or missing in what I am doing. Any idea ?

I don't know if I give you enough information about my code so please, ask 
me if you need some more.


Thank you

Regards,
Bart

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/8399502b-a933-44f1-9b32-6557346f21c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to