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

Ab/leaf2 migration #2478

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Draft

Ab/leaf2 migration #2478

wants to merge 11 commits into from

Conversation

imabdulbasit
Copy link
Contributor

@imabdulbasit imabdulbasit commented Jan 20, 2025

TODO:

  • test that after migration leaf1 type has been correctly converted to leaf2
  • better name for table tracking each migration instead of epoch_migration
  • call query service leaf migration function
  • indexes

Comment on lines +694 to +699
self.migrate_anchor_leaf().await?;
self.migrate_da_proposals().await?;
self.migrate_vid_shares().await?;
self.migrate_undecided_state().await?;
self.migrate_quorum_proposals().await?;
self.migrate_quorum_certificates().await
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we gate this by versions(and the other parts we start storing the new types) so we can merge this and not worry about deploying it

Comment on lines +702 to +719
async fn migrate_anchor_leaf(&self) -> anyhow::Result<()> {
Ok(())
}
async fn migrate_da_proposals(&self) -> anyhow::Result<()> {
Ok(())
}
async fn migrate_vid_shares(&self) -> anyhow::Result<()> {
Ok(())
}
async fn migrate_undecided_state(&self) -> anyhow::Result<()> {
Ok(())
}
async fn migrate_quorum_proposals(&self) -> anyhow::Result<()> {
Ok(())
}
async fn migrate_quorum_certificates(&self) -> anyhow::Result<()> {
Ok(())
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think all of these should be fully implemented in the same PR

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.

3 participants