-
Notifications
You must be signed in to change notification settings - Fork 744
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
Introduce storage attr macro #[disable_try_decode_storage]
and set it on System::Events
and ParachainSystem::HostConfiguration
#3454
Merged
liamaharon
merged 18 commits into
master
from
liam-disable-try-decode-storage-attr-macro
Feb 28, 2024
Merged
Changes from 15 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
7d8d7c3
disable try decode storage attr macro
liamaharon 4a61cf2
restore cfg_attrs check
liamaharon cd72af0
update ui test
liamaharon f7e6883
add pallet_macros re-export
liamaharon 4237a40
prdoc
liamaharon 53e3504
update ui test
liamaharon 533a665
update frame ui test
liamaharon 683ba87
docs
liamaharon 06ff03b
revert trying to make doc comment compile
liamaharon f15f4ce
Merge branch 'master' into liam-disable-try-decode-storage-attr-macro
liamaharon 47a37b3
add descriptive comment
liamaharon bc19ee8
Merge branch 'liam-disable-try-decode-storage-attr-macro' of github.c…
liamaharon fb650db
Merge branch 'master' into liam-disable-try-decode-storage-attr-macro
liamaharon cc5bcba
disable decoding HostConfiguration
liamaharon 61fd3a3
Merge branch 'liam-disable-try-decode-storage-attr-macro' of github.c…
liamaharon 93bc54b
Merge branch 'master' into liam-disable-try-decode-storage-attr-macro
liamaharon b58a660
remove duplicate import
liamaharon 19b3735
fmt
liamaharon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0 | ||
# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json | ||
|
||
title: "Introduce storage attr macro #[disable_try_decode_storage] and set it on System::Events and ParachainSystem::HostConfiguration" | ||
|
||
doc: | ||
- audience: Runtime Dev | ||
description: | | ||
Allows marking storage items with \#[disable_try_decode_storage], which disables that storage item from being decoded | ||
during try_decode_entire_state calls. | ||
|
||
Applied the attribute to System::Events to close https://github.com/paritytech/polkadot-sdk/issues/2560. | ||
Applied the attribute to ParachainSystem::HostConfiguration to resolve periodic issues with it. | ||
|
||
crates: | ||
- name: frame-support-procedural | ||
- name: frame-system | ||
- name: cumulus-pallet-parachain-system | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
substrate/frame/support/test/tests/pallet_ui/storage_invalid_attribute.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@kianenigma do you remember why we check
if storage.cfg_attrs.is_empty()
here?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.
It seems it's to avoid this compile error https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/5317738
I wonder if there's a better way to handle that.
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.
Yea we should probably re-expand the attributes here.
It seems to be only used only for testing.