This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Fix pallet bags list and doc #10231
Merged
Merged
Fix pallet bags list and doc #10231
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
c1550d2
fix bags list
gui1117 29ce8c0
improve doc
gui1117 ed1fb34
doc
gui1117 c2f6366
inner doc
gui1117 eb90700
fix test
gui1117 2e72037
Update docs in frame/election-provider-support/src/lib.rs
KiChjang ce7fff7
fix staking impl
gui1117 fede886
prepend unsafe to clear and regenerate
gui1117 61e8612
Merge remote-tracking branch 'origin/master' into gui-fix-bags-list
gui1117 ee451a5
fix test
gui1117 ae9c70e
Merge remote-tracking branch 'origin/master' into gui-fix-bags-list
gui1117 18a0d8b
Merge remote-tracking branch 'origin/master' into gui-fix-bags-list
gui1117 790456b
Merge branch 'master' into gui-fix-bags-list
shawntabrizi 56e3ede
Merge remote-tracking branch 'origin/master' into gui-fix-bags-list
gui1117 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -234,7 +234,11 @@ where | |
| <Self as crate::storage::StorageMap<Key, Value>>::migrate_key::<OldHasher, _>(key) | ||
| } | ||
|
|
||
| /// Remove all value of the storage. | ||
| /// Remove all values of the storage in the overlay and up to `limit` in the backend. | ||
| /// | ||
|
Comment on lines
+237
to
+238
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Its just a crazy api. This is absolutely not an "expected" behavior, and we shouldn't really expose such weird things in this way... We need apis like this which are both bounded and behave in expected ways.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes I agree, IMO we should at least have sp_io::storage::clear_prefix return the exact number of value removed (in both overlay and backend). |
||
| /// All values in the client overlay will be deleted, if there is some `limit` then up to | ||
| /// `limit` values are deleted from the client backend, if `limit` is none then all values in | ||
| /// the client backend are deleted. | ||
| pub fn remove_all(limit: Option<u32>) -> sp_io::KillStorageResult { | ||
| <Self as crate::storage::StoragePrefixedMap<Value>>::remove_all(limit) | ||
| } | ||
|
|
||
This file contains hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.