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

Add flag to see storage diff if idemptotent check fails #78

Merged
merged 5 commits into from
Feb 27, 2024

Conversation

tmpolaczyk
Copy link
Contributor

When the idempotent migration check fails, users see this unhelpful error message:

❌ Migrations are not idempotent. Selectively remove migrations from Executive until you find the culprit.

This PR implements a flag to enable printing the differences in storage. It is disabled by default because users can ignore the "idempotent" warning if they want to. If the flag is disabled there is a log that suggests enabling it, improving the old message.

Captura desde 2024-02-20 13-59-48

Copy link
Member

@ggwpez ggwpez left a comment

Choose a reason for hiding this comment

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

Neat!

core/src/commands/on_runtime_upgrade.rs Outdated Show resolved Hide resolved
tmpolaczyk and others added 4 commits February 26, 2024 17:38
Copy link
Contributor

@liamaharon liamaharon left a comment

Choose a reason for hiding this comment

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

Awesome, thanks @tmpolaczyk!

@liamaharon liamaharon merged commit 8762d74 into paritytech:main Feb 27, 2024
4 checks passed
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