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

fix: fix add/update_user version field handling on migrations #619

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

pjenvey
Copy link
Member

@pjenvey pjenvey commented Feb 16, 2024

  • explicitly add a version (which there is None from DynamoDB) in dual mode migration
  • Bigtable::add_user now writes the initial version passed in
  • Bigtable::update_user continues always writing a new version but now modifies the &mut User upon success

Closes: SYNC-4147

- explicitly add a version (which there is None from DynamoDB) in dual mode
  migration
- Bigtable::add_user now writes the initial version passed in
- Bigtable::update_user continues always writing a new version but now modifies
  the &mut User upon success

Closes: SYNC-4147
@pjenvey pjenvey requested a review from jrconlin February 16, 2024 02:23
Copy link
Member

@jrconlin jrconlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit concerned about the debug_assert! winding up in production, but not enough to block this.

Copy link
Member

@jrconlin jrconlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit concerned about the debug_assert! winding up in production, but not enough to block this.

@pjenvey
Copy link
Member Author

pjenvey commented Feb 16, 2024

@jrconlin release builds compile it out, so we have bigger problems if that ever happens

@pjenvey pjenvey merged commit 1ff88e7 into master Feb 16, 2024
1 check passed
@pjenvey pjenvey deleted the fix/bigtable-migration-version-SYNC-4147 branch February 16, 2024 06:35
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