Are syncadaptors supposed to sync deletions back from the server?

36 views
Skip to first unread message

Danielo Rodríguez

unread,
May 24, 2015, 5:33:54 PM5/24/15
to tiddly...@googlegroups.com
Hello Everyone,

Playing with the couchdb adaptor some users have realized that there are problems with Draft tiddlers. Basically there are problems with deletions, and the draft tiddlers are the biggest problem related to this. Is supposed that the sync module should take care of this? I mean, will it ask for the syncadaptor deletions?

Regards

Jeremy Ruston

unread,
May 24, 2015, 6:03:21 PM5/24/15
to TiddlyWikiDev
Hi Danielo

Deletions are not currently handled properly by the sync mechanism. A deletion from the browser will be synced to the server, but won't get propagated onwards to other users connected to the same server. The sync logic will need extending to make things work properly: essentially, the syncer module should assume that any tiddlers that are not returned by getSkinnyTiddlers() have been deleted on the server, and need deleting locally.

Best wishes

Jeremy.


--
You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikide...@googlegroups.com.
To post to this group, send email to tiddly...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/04f22de8-dd2b-4d6b-a257-ca09bbcdd556%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

Danielo Rodríguez

unread,
May 25, 2015, 2:56:22 AM5/25/15
to tiddly...@googlegroups.com, jeremy...@gmail.com

 
Hello Jeremy


The sync logic will need extending to make things work properly: essentially, the syncer module should assume that any tiddlers that are not returned by getSkinnyTiddlers() have been deleted on the server, and need deleting locally.

That is a too destructive approach. What about those tiddlers that are not stored on the server but locally? What if TW is capable to talk to several servers/databases ? How does tiddlyspace handle this? 
Reply all
Reply to author
Forward
0 new messages