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

use db_version for col_version #386

Merged
merged 2 commits into from
Nov 21, 2023
Merged

use db_version for col_version #386

merged 2 commits into from
Nov 21, 2023

Conversation

tantaman
Copy link
Collaborator

This ensures that if two fields should always change together that they always will as when one loses a merge the other one will also lose the merge.

Hmm, except in the case where the clocks are equal and then we tie break on value. Would be better to tie break on peer id for consistency.

tantaman added a commit that referenced this pull request Oct 13, 2023
1. We compact out side ids so there isn't much advantage to making it null for local writes anymore
2. This cleans up the interface so users don't have to do weird coalescing
3. This allows us to make #386 a reality by switching tie breaks to site_ids
tantaman added a commit that referenced this pull request Oct 13, 2023
1. We compact out side ids so there isn't much advantage to making it null for local writes anymore
2. This cleans up the interface so users don't have to do weird coalescing
3. This allows us to make #386 a reality by switching tie breaks to site_ids
@tantaman tantaman mentioned this pull request Oct 13, 2023
tantaman added a commit that referenced this pull request Oct 13, 2023
1. We compact out side ids so there isn't much advantage to making it null for local writes anymore
2. This cleans up the interface so users don't have to do weird coalescing
3. This allows us to make #386 a reality by switching tie breaks to site_ids
tantaman added a commit that referenced this pull request Oct 13, 2023
1. We compact out side ids so there isn't much advantage to making it null for local writes anymore
2. This cleans up the interface so users don't have to do weird coalescing
3. This allows us to make #386 a reality by switching tie breaks to site_ids
tantaman added a commit that referenced this pull request Oct 13, 2023
This is to allow us to preserve transactionality of mutations.

In conjunction with #386, this'll allow fields to be all set together or all reverted together.

Useful for cases where `x` & `y` coordinates are supposed to be updated together or not at all or some such thing.
tantaman added a commit that referenced this pull request Oct 26, 2023
This is to allow us to preserve transactionality of mutations.

In conjunction with #386, this'll allow fields to be all set together or all reverted together.

Useful for cases where `x` & `y` coordinates are supposed to be updated together or not at all or some such thing.
tantaman added a commit that referenced this pull request Oct 30, 2023
This is to allow us to preserve transactionality of mutations.

In conjunction with #386, this'll allow fields to be all set together or all reverted together.

Useful for cases where `x` & `y` coordinates are supposed to be updated together or not at all or some such thing.
@tantaman tantaman force-pushed the db-version-col-version branch from 1b45a97 to 28cf7f6 Compare November 15, 2023 16:31
This ensures that if two fields should always change together that they always will as when one loses a merge the other one will also lose the merge.

Hmm, except in the case where the clocks are equal and then we tie break on value. Would be better to tie break on peer id for consistency.
@tantaman tantaman force-pushed the db-version-col-version branch from 28cf7f6 to a286a3e Compare November 21, 2023 19:12
@tantaman tantaman merged commit 35584c4 into main Nov 21, 2023
9 checks passed
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

Successfully merging this pull request may close these issues.

1 participant