-
Notifications
You must be signed in to change notification settings - Fork 18
Editing conflicts #35
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Hello @tgirod Regarding editing conflicts, we use pouchdb under the hood. This means that, by default, we use the same conflict resolve mechanism that pouchdb does. Each time a tiddler is edited, an unique revision ID is created, and the tiddler is saved as a new revision of the previous tiddler. If another person edits the same tiddler at the same time, an unique ID will be generated for that particular edition. Then when tiddlers are synchronized the tiddler with the highest edition ID (or more recent) is picked. This happens silently, but you can navigate through edition history using the UI. We don't have however a mechanism to pick one particular edition, neither for side-by side comparison. Pull requests on that regard are welcome. Regards |
Than it's just impossible to resolve such conflicts: the system never let us even know that there were any edit conflict. Remember that pouchdb is good in offline, and imagine that 2 persons during same time make several edition offline. Actually I know nothing about pouchdb internals, so I am not sure if it ever possible to reliably resolve such conflicts. I hope it's possible, as long as we have current and previous rev hashes to find if one is parent of another or not.
Well, it's least important part after all. More important is to inform user about conflict, and save conflicting revisions in any form (may be as renamed tiddler). |
Maybe it could be enough to just inform and save the tiddler as you said until we find a better way of resolving conflicts |
We added revision traveling not very long ago. Maybe it is solved by now? |
Need to check this |
First: I've been dreaming of something like this for several years now.
Now, to my question: how does NS manage editing conflicts when synchronizing several devices ? If done well, this would open the door to do collaborative editing of tiddlywiki, something I desperately long for.
The text was updated successfully, but these errors were encountered: