-
Notifications
You must be signed in to change notification settings - Fork 180
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 migration diff util for testing and debugging migrations #5499
Add migration diff util for testing and debugging migrations #5499
Conversation
This commit adds two flags to execution-state-extract cmd: * --diff to compare Cadence values and log diff results * --log-verbose-diff to log entire Cadence values Migration diff is output as JSON. The primary use case is for testing and debugging migrations.
…port-to-migrations
@turbolent Currently |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! Thank you so much for adding this, and so quickly 🙏
👏 👏 👏 |
@fxamacker yes, could you please also add it to |
- Cadence1LinkValueMigrator - Cadence1CapabilityValueMigrator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice!
Closes #5483
This PR adds two flags to execution-state-extract cmd:
--diff
to compare Cadence values and log diff results--log-verbose-diff
to log entire Cadence valuesMigration diff is output as JSON.
Diff is enabled for 3 Cadence value migrators:
Cadence1ValueMigrator
Cadence1LinkValueMigrator
Cadence1CapabilityValueMigrator
The primary use case is for testing and debugging migrations.