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

Sync revamp migration fix #500

Merged
merged 4 commits into from
Jan 31, 2023
Merged

Sync revamp migration fix #500

merged 4 commits into from
Jan 31, 2023

Conversation

dholms
Copy link
Collaborator

@dholms dholms commented Jan 27, 2023

This fixes an issue from the migration in #446

The issue we ran into was that block ownership was not being correctly tracked. There were some blocks that were only tied to the first user to create them & then not tracked for other users.

This fix tries to grab all the blocks tied to a user but then can dynamically ask for blocks not tied to the user if it needs to. It then does the migration as before, but also creates a link in ipld_block_creator for each of those blocks.

Relies on #501

@dholms dholms changed the base branch from main to indexed-time-on-record January 27, 2023 23:28
@dholms dholms marked this pull request as ready for review January 27, 2023 23:46
Copy link
Collaborator

@devinivy devinivy left a comment

Choose a reason for hiding this comment

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

👍 looking good

Base automatically changed from indexed-time-on-record to main January 31, 2023 23:23
@dholms dholms force-pushed the sync-revamp-migration-fix branch from 3ac7986 to 9942ac2 Compare January 31, 2023 23:45
@devinivy devinivy merged commit 92c1a15 into main Jan 31, 2023
@devinivy devinivy deleted the sync-revamp-migration-fix branch January 31, 2023 23:53
mloar pushed a commit to mloar/atproto that referenced this pull request Nov 15, 2023
* moved indexedAt time to record instead of ipld-block

* add in necessary ipld_block_creators

* fix test name
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