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

Chore/fix sync bug multiple depedent changes #16

Merged
merged 5 commits into from
Oct 16, 2024

Conversation

hahn-kev
Copy link
Collaborator

During a sync, if a word is created, then a definition is created, and there's more than one change to that definition, and all 3+ of those changes come via a sync at once there will be a failure due to a FK constraint, I suspect this is due to the creation of the definition happening before the word is created.

@myieye myieye closed this Oct 15, 2024
@myieye myieye reopened this Oct 15, 2024
@hahn-kev
Copy link
Collaborator Author

Looks good to me. There might be an edge case when applying commits to snapshots SnapshotWorker.ApplyCommitsToSnapshots, but that's only used for getting the state of an object at a point in time.

Let's merge it, I think you need to approve so it'll merge

@hahn-kev hahn-kev enabled auto-merge (squash) October 16, 2024 02:56
@hahn-kev hahn-kev merged commit 4cc3fe1 into main Oct 16, 2024
6 checks passed
@hahn-kev hahn-kev deleted the chore/fix-sync-bug-multiple-depedent-changes branch October 16, 2024 06:21
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.

2 participants