-
Notifications
You must be signed in to change notification settings - Fork 0
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
lix host prototype spec #161
Comments
Example loading a lix from the host
// fetching the initial file from the host
const response = await fetch("https://lix-host.onrender.com/project.inlang")
// load the project
const project = await loadProjectInMemory({ blob: await response.blob() })
// utility function that takes the lix and syncs it to the given host
sync({ lix: project.lix, host: "https://lix-host.onrender.com/project.inlang" }) Pseudocode
Things needed to make this work
@jan.johannes @martin.lysk1 am i missing something? |
Why can the merging not happen on a client and we use a s3 to just override data? |
Guys, this is not about live collaboration. This is just syncing. No need to show who opened a file and what not in this test. Just send the server the lix file on changes (which the server merges) and merge receiving lix files on the client.
We just need a sync button which, if checked, sync to the server.
Because you overwrite data and thereby lose merging on the server. The client merges data from the server. The server merges data from the client. That simple. Two clients syncing with a server will always merge on the server. Otherwise, Client A and Client B need to connect to each other to merge.
Yes. Have syncing that avoids sending files around. |
BTW this is blocked by LIXDK-126. We should probably discuss and introduce branching first |
Yes exactly!
With those three steps, we should be able to have syncing between multiple clients. Conflicts don't have to be resolved. If a conflict occurs, the conflict will be shown to the user. Our current architecture of lix should support this use case out of the box. If not, something went wrong and we have to investigate. |
Context
The workflows between sync and file-based collab shouldn't differ.
Yet, we had discussions on data structures and workflows that differ in a hosted lix scenario. It would likely help to drive consensus and confidence in the data structures if a mini host prototype exists that showcases workflows in a synced scenario.
Proposal
Build a 1 day prototype that enables fink and the csv protoype to sync to a host.
The text was updated successfully, but these errors were encountered: