Skip to content
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

Cleanup deprecated apis #1764

Closed
wants to merge 8 commits into from

Conversation

yjhmelody
Copy link
Contributor

@yjhmelody yjhmelody commented Sep 30, 2023

Clean up some deprecated apis for pallets :

  • Some apis that should be removed after july.
  • Some apis that are deprecated more than one year.

Polkadot address: yjhmelody

@yjhmelody yjhmelody requested review from a team September 30, 2023 05:07
@yjhmelody yjhmelody changed the title Cleanup deprecated Cleanup deprecated apis Sep 30, 2023
@yjhmelody yjhmelody requested a review from a team September 30, 2023 05:17
@yjhmelody yjhmelody requested a review from athei as a code owner September 30, 2023 05:17
@yjhmelody
Copy link
Contributor Author

@bkchr

@bkchr bkchr added the T1-FRAME This PR/Issue is related to core FRAME, the framework. label Oct 1, 2023
@@ -254,11 +120,7 @@ pub fn put_storage_value<T: Encode>(module: &[u8], item: &[u8], hash: &[u8], val
/// `hash`.
#[deprecated = "Use `clear_storage_prefix` instead"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also add a deprecation string here in the same format as above with a fixed date please?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess that can also be deleted, as even if it didn't have the deprecation date noted is already 16 months old

Copy link
Contributor

@juangirini juangirini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs a prdoc https://github.com/paritytech/polkadot-sdk/blob/master/docs/CONTRIBUTING.md#documentation

Looping in @sacha-l and @Rashmirreddy for potential communication and documentation.

Copy link
Contributor

@kianenigma kianenigma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't block this, but won't approve as-is either to suggest this guideline for these PRs:

  • In the PR description, make a list of items you are removing
  • Link to the PR merge date when they got merged, and approximately which release they went into.

Hopefully this is not too much work, but it gives us a very yardstick to know what we are deleting.

All in all though, there is a lot of such code in the codebase. Thanks for attending to them!

@yjhmelody
Copy link
Contributor Author

yjhmelody commented Oct 24, 2023

Ok, maybe should be closed. I do not know the detail processes about deprecating apis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T1-FRAME This PR/Issue is related to core FRAME, the framework.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants