-
Notifications
You must be signed in to change notification settings - Fork 660
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
Deprecation info support in RuntimeMetadataIR #4851
Conversation
substrate/frame/support/procedural/src/construct_runtime/expand/metadata.rs
Show resolved
Hide resolved
substrate/frame/support/procedural/src/construct_runtime/parse.rs
Outdated
Show resolved
Hide resolved
Nice work here @pkhry! Certainly off to a good start! 👍 Left a few thoughts after the initial review, mainly:
From the CI step: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/6513912:
After that we can have a look at exposing deprecation info for events / errors (maybe in a separate PR), your initial approach of using a |
f0008e0
to
c8d2285
Compare
bot fmt |
@pkhry https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7266675 was started for your command Comment |
@pkhry Command |
bot fmt |
@pkhry https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7268914 was started for your command Comment |
@pkhry Command |
/cmd update-ui |
Command "update-ui" has started 🚀 See logs here |
Command "update-ui" has failed ❌! See logs here |
bot update-ui |
@pkhry https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7285661 was started for your command Comment |
@pkhry Command |
/cmd update-ui |
Command "update-ui" has started 🚀 See logs here |
Command "update-ui" has failed ❌! See logs here |
Description:
DeprecationStatusIR
enum to sp_metadata_ir.Deprecation info for simple items.
DeprecationInfoIR
enum to sp_metadata_ir.It is a deprecation info for an enums/errors/calls. Contains
DeprecationStatusIR
.Denotes full/partial deprecation of the type or its variants/calls
deprecation_info
field to-
RuntimeApiMetadataIR
-
RuntimeApiMethodMetadataIR
-
StorageEntryMetadataIR
-
PalletConstantMetadataIR
-
PalletCallMetadataIR
-
PalletMetadataIR
-
PalletEventMetadataIR
-
PalletErrorMetadataIR
Testing done:
note
/since
texts are getting propagated to the metadata structs.There's also some test updates to make sure that deprecation attributes are getting propagated to the relevant structs.
see: #4098, Solution: A
Examples of produced deprecation info metadata
They can be found in:
frame-support