Hi,
Just testing, some sync problem with tw5 open on two computers, but it seems to work well.
Another great usage I see of your implementation is for managing attachment inside tw5 (image, pdf, ...).
For now, i just put an Iframe of futon inside a tiddler which allow me to upload attachment to /tw/images for example. Still investigating.
Very light usage, still testing and investigating this architecture. I have TW5 opens on two computers. I just do basic editing on one, then refresh the wiki on the other. I ended up with Draft tiddler with sync problem and was unable to remove them. I add to go to the couchdb interface to remove the corresponding document (Draft of New Tiddler).
Indeed, I can't install any plugins, neither via drag'n'drop of the plugins tiddlers, nor via the new control panel menu. It ends up asking indefinitely to reload the wiki to have the new plugin to take effect. Add to remove manually the corresponding tiddler.
2. I save the tiddler and upload an attachment to the corresponding document in couchdb
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/db7fa5bf-af3b-4367-a92b-4a7d9a5322c7%40googlegroups.com.--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/pZzttVrh5Kg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
In fact one big advantage, I can embed huge pdf file without problem with this technique (tested with two PDF of 50Mo and tiddlywiki continue to work fluently, with the drag'n'drop technique, the first one crashes tiddlywiki).
To sumarize
1. I create a tiddler named My Huge Pdf for example, with the type application/pdf and a _canonical_uri field
2. In Futon, i upload the huge PDF as an attachment to the document My Huge Pdf wich represent my newly created tiddler
3. Copy the link location of the uploaded PDF and add it to the _canonical_uri field
4. Save my tiddler -> The attachment disappear and a new_field is created in my tiddler
5. Re_edit my tiddler to get rid of the new auto-generated field _attachment. Save
6. Re-upload the huge pdf and now all works well as long as I didn't re-edit my tiddler ;)
Hope that was clear. So it would be great if the attachment doesn't disappear in step 4.
Note that the "stub":true attribute denotes that this is not the complete attachment. Also, note the length attribute added automatically. When you update the document you must include the attachment stubs or CouchDB will delete the attachment.
Thanks a lot. That's exactly the sort thing I was guessing.
I'll continue playing and only add to say that this is a great implementation of tiddywiki sync since it allow now revision and attachment management.
When you have two wikis that syncs to the same couchdb newly created tiddlers are correctly synced between two, but deletions does not.
I don't know how to understand this as a feature or as a problem. There is only one scenario where I'm totally sure this is a problem: in Draft management. Drafts are temporal by definition and once you have finished edditing you don't want that draft anymore, and of course you don't want a draft to be kept on several instances of TW.
To reproduce the Draft problem:
- Open a tiddlywiki that syncs to a couchdb in two different computers or two different tabs.
- Edit a tiddler or create a new tiddler and leave it in draft mode long enough to be synced
- Wait in the other instance of the wiki to the next "skinny tiddlers" fetch
- Draft appears on recent tab, absolutely empty unless you open it.
- Finish editing on the first wiki. Draft is deleted from DB
- Open the draft on the second instance. You have an empty draft, this can cause confusion because you also have the normal tiddler.
- Try to finish editing on the second instance with the empty draft and you will get an error because that document does not exist on the database anymore
I'm not sure how to address this problem. Avoid draft synchronization should not be an option, because I strongly thing that drafts should be synced.