-
Notifications
You must be signed in to change notification settings - Fork 712
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
Don't expose metadata for Runtime APIs that haven't been implemented #6337
Merged
Merged
Changes from 8 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
3c2cb70
Filter runtime API metadata by version implemented
jsdw bc0b17a
Add test and fix a coupole of issues
jsdw c695171
fmt
jsdw 7423f35
Merge branch 'master' into jsdw-versioned-runtime-api-metadata
jsdw 03da4bf
Add comment
jsdw 9738eb7
Add prdoc
jsdw 8bac882
Merge branch 'master' into jsdw-versioned-runtime-api-metadata
jsdw f99faec
Delete polkadot/Cargo.lock
bkchr a2defb2
Updateframe-support tests
jsdw 36d8ae0
Merge branch 'jsdw-versioned-runtime-api-metadata' of github.com:pari…
jsdw 9cbb5c5
u32 api_version to align with VERSION, and use VERSION instead of add…
jsdw 5d75c2c
Merge branch 'master' into jsdw-versioned-runtime-api-metadata
jsdw 0c48f03
Fix prdoc
jsdw f0073db
Merge branch 'jsdw-versioned-runtime-api-metadata' of github.com:pari…
jsdw b9e7818
Update from jsdw running command 'fmt'
actions-user 7719861
Merge branch 'master' into jsdw-versioned-runtime-api-metadata
jsdw 65bb934
runtime_metadata(impl_version) to filter there
jsdw cabb755
Merge branch 'jsdw-versioned-runtime-api-metadata' of github.com:pari…
jsdw 048103a
Merge branch 'master' into jsdw-versioned-runtime-api-metadata
jsdw e710771
Undo frame-support tests change
jsdw 1275f0d
Merge branch 'jsdw-versioned-runtime-api-metadata' of github.com:pari…
jsdw 5cf3857
Update from jsdw running command 'fmt'
actions-user 78c1716
Merge branch 'master' into jsdw-versioned-runtime-api-metadata
bkchr 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# 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: Don't expose metadata for Runtime APIs that haven't been implemented | ||
|
||
doc: | ||
- audience: Runtime User | ||
description: | | ||
Prior to this PR, the metadata for runtime APIs would contain all methods for the | ||
latest version of each API, regardless of which version a runtime implements. This | ||
PR fixes that, so that the runtime API metadata reflects what is actually implemented. | ||
|
||
crates: | ||
- name: sp-api | ||
bump: patch | ||
- name: sp-metadata-ir | ||
bump: major |
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
Oops, something went wrong.
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.
I didn't change any of this code; just moved it to the utils module so that I could use it in runtime_metadata too.