-
Notifications
You must be signed in to change notification settings - Fork 10
[Authorize upgrade] Upgrade authorization by Polkadot relay chain #218
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
[Authorize upgrade] Upgrade authorization by Polkadot relay chain #218
Conversation
I would like to discuss with you the approach I used here, that I'm not sure if it looks nice. You will notice that I've introduced test file that involve scenarios for 3 chains, and following current pattern of naming files I'm using: the truth is that chain3 is always Collectives, so more like I was wondering if that looks ok to you, or should I ignore Collectives part (as something that is fixed among tests, but will probably be skipped for notifications purposes) ? Also, I have in mind a test that will involve all the system chains and relay chain, so something like an edge case scenario where relay chain approves upgrade for all system chains at once - how to fit that scenario? should that be part of |
packages/shared/src/upgrade.ts
Outdated
.toMatchSnapshot('collectives events emitted when sending xcm') | ||
await governingChain.dev.newBlock() | ||
await checkSystemEvents(governingChain, 'whitelist', 'messageQueue') | ||
// TODO: redacting 'id' is not perfect here; but seems not possible to redact nested keys, in this case specifically only "message.id" |
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.
you can do .map(x => { x.message.id = '(redacted)'; return x }
or I can add a redactKeyPaths: string[][]
and basically _.set(x, keyPath, '(redacted)')
to the object
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.
thank you for looking into this, seems I must have confused/overlooked something in this case as I couldn't justify this again on second look - id
is properly redacted here, no conflicts with other nested id
attributes
I have removed this misleading comment - nothing to be done here
|
I have created the issue to track this here #228 separately from this PR |
This pull request introduces scenarios of Runtime upgrades authorization by Relay Chain.
Scenarios to cover:
This pull request covers Polkadot Network, other PRs will be created for Kusama network and AssetHub Next based scenarios