-
Notifications
You must be signed in to change notification settings - Fork 1
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
Automerge document module with hard-coded schema #3
Conversation
This module holds the automerge `AutoCommit` document now with all the necessary methods around it we need. Additionally this commit prepares the use of a hard-coded byte representation to construct the document. This will allow us to independently create documents across peers as all peers will create the _same_ document schema whenever they do it. More about it here: <https://automerge.org/docs/cookbook/modeling-data/#setting-up-an-initial-document-structure>
a43fc48
to
e4349f8
Compare
LGTM. Any reason this is a draft? |
Thank you! I couldn't test it because I don't know yet how to run two separate Aardvark instances on my machine with Builder 🫣 |
Yeah, I just also ran into that issue and I don't know how if there is a nicer way but I can run this:
|
What I did was run a second instance of builder using 'dbus-run-session -- gnome-builder'. For some weird reason it takes about 1 minute until the window actually opens, but then everything works fine. |
Great, that worked well for me (also without the 1-minute waiting time)! Thank you! All tested, seems to be working :-) |
This module holds the automerge
AutoCommit
document now with all the necessary methods around it we need.Additionally this PR uses a hard-coded byte representation to construct the document. This will allow us to independently create documents across peers as all peers will create the same document schema with the same id whenever they do it. More about it here:
https://automerge.org/docs/cookbook/modeling-data/#setting-up-an-initial-document-structure