Skip to content
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

[BUG] Confusion around whether/which system tiddlers to live sync between client and server #4882

Open
hoelzro opened this issue Oct 7, 2020 · 2 comments

Comments

@hoelzro
Copy link
Contributor

hoelzro commented Oct 7, 2020

Describe the bug
Whether or not to sync system tiddlers is unclear, or at least which system tiddlers would be wise to live sync.

This is a continuation of #4868, which is more focused on the $:/StoryList tiddler

@hoelzro
Copy link
Contributor Author

hoelzro commented Oct 7, 2020

Part of my confusion lies in the fact that TiddlyWiki's UI is built upon various system tiddlers, so syncing these among clients results in the UI changing state. For example, clicking on a sidebar tab will (eventually) make that tab the displayed one on all clients.

I'd also like to clarify that I'm thinking specifically about "live sync" - what I mean by that is tiddlers that change on the server after I've loaded the wiki into a client (eg. a browser tab) getting picked up by that client when it's checking in with the server.

@pmario points out in the original issue that TiddlyWeb's recipes and bags feature could be leveraged to solve this - you'd just need to make sure each client has their own recipe, and the outermost bag in each client's recipe would be where system tiddlers would be written, if I understand correctly.

@pmario
Copy link
Member

pmario commented Oct 7, 2020

A recipe can contain several bags. You can have 1 bag, that is responsible for system tiddlers. Users need to make sure, that recipes only contain their own system_bag.

The client needs to know, from which bag a tiddler comes from. .. This can be achieved in 2 ways. TW can store the "bag info" with the tiddler or it can create a "hash-table" tiddler, that keeps track, where the tiddlers come from. The later is used at the moment.

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