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

bug: copy over the channels when migrating the user #539

Merged
merged 5 commits into from
Dec 20, 2023

Conversation

jrconlin
Copy link
Member

This will attempt to copy the existing channels for a user. This is important because desktop does not check and rebuild channels if the server doesn't have them. (Might want to make that a standardized feature in the future.)

Closes: SYNC-4050

This will attempt to copy the existing channels for a user. This is
important because desktop does not check and rebuild channels if the
server doesn't have them. (Might want to make that a standardized
feature in the future.)

Closes: SYNC-4050
@jrconlin jrconlin requested a review from pjenvey December 15, 2023 22:47
.conn
.mutate_rows(&req)
.map_err(error::BigTableError::Write)?;
// TODO: is there a better way to do this? I don't think we care about the return stream.
Copy link
Member

Choose a reason for hiding this comment

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

A problem is that it's a stream of results of each individual mutation. It appears some in the batch can succeed while others fail. I think at the very least we need to loop through the stream to check every result: this currently only checks the first result.

@jrconlin jrconlin requested a review from pjenvey December 19, 2023 19:57
@jrconlin jrconlin merged commit e36b3fe into master Dec 20, 2023
1 check passed
@jrconlin jrconlin deleted the bug/sync-4050_channels branch December 20, 2023 00:39
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