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

added migration scripts & utils.sh file #2861

Merged

Conversation

ignazio-bovo
Copy link
Collaborator

@ignazio-bovo ignazio-bovo commented Nov 26, 2021

Refers to #2828

@ignazio-bovo ignazio-bovo requested review from mnaamani and removed request for mnaamani November 26, 2021 07:52
@ignazio-bovo ignazio-bovo force-pushed the giza_it_migration_scripts branch from 990944a to 545c346 Compare November 26, 2021 08:18
@ignazio-bovo ignazio-bovo force-pushed the giza_it_migration_scripts branch from fcd7a52 to 1bb1e20 Compare November 29, 2021 12:31
@ignazio-bovo
Copy link
Collaborator Author

ignazio-bovo commented Nov 30, 2021

I encountered a problem on the @joystream/cli side, @Lezek123 has been kind enough to start fixing it.
Everything is almost finished, I would also change the nightly toolchain used to avoid the build same serde build problem encountered on the storage node PR

@ignazio-bovo ignazio-bovo marked this pull request as ready for review December 6, 2021 17:44
@ignazio-bovo ignazio-bovo requested a review from mnaamani December 8, 2021 07:21
@ignazio-bovo ignazio-bovo force-pushed the giza_it_migration_scripts branch from caa2df5 to 55d1efe Compare December 8, 2021 10:35
@ignazio-bovo ignazio-bovo requested a review from mnaamani December 8, 2021 10:53
.forEach(([key, value]) => (chainSpec.genesis.raw.top[key] = value));

// Delete System.LastRuntimeUpgrade to ensure that the on_runtime_upgrade event is triggered
delete chainSpec.genesis.raw.top['0x26aa394eea5630e07c48ae0c9558cef7f9cce9c888469bb1a0dceaa129672ef8'];
Copy link
Member

Choose a reason for hiding this comment

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

It would be better to show how these raw values are derived so this script can be generalized if we use it against a different chain.

Copy link
Collaborator Author

@ignazio-bovo ignazio-bovo Dec 9, 2021

Choose a reason for hiding this comment

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

The raw values are derived from the pallet name + storage element (+ eventual key in the map). Deriving the value I believe doesn't prevent the script from breaking in case of a different chain (since it depends on the chain pallets configuration), but it makes it easier to fix...

@mnaamani mnaamani self-requested a review December 10, 2021 13:15
Copy link
Member

@mnaamani mnaamani left a comment

Choose a reason for hiding this comment

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

Almost there, made a few last suggestions.

In test/network-tests/ working directory:
There are a few linter fixes to do in the typescript code.
run yarn checks to check them (or you might see them in your editor with eslint plugin enabled)
run yarn format to fix formatting.

@mnaamani mnaamani merged commit 0d0279a into Joystream:giza_staging Dec 17, 2021
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