-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Create a "Deprecation notice/warning" banner/modal/etc. for (some) deprecated API calls #10212
Comments
This sounds like a similar issue to #15206 and could probably be handled in tandem to ensure these notices are as user-friendly as possible whilst providing helpful prompts to developers. |
I am working on a mockup for this. I have two questions about this issue:
|
@anyssa thanks for looking into this!
|
I'm not sure that this is worth doing now that our API is more stable. We use @youknowriad @aduth: What do you think? |
I agree for the moment but I think at some point we need to discuss the deprecation strategy for Core in general. and having more prominent notices depending on the "stage" of the deprecation could be good. I think we can close for the moment though. |
I'll second @youknowriad on this. I think we'd need to revisit this if we do ever decide to schedule deprecations for removal. The main idea behind the plugin's deprecation policy (notably its two-release scheduling) was that deprecations could be made to be less impactful if they were both predictable and well-communicated. The two-version policy satisfies the first of these goals, but our communication (outside of this handbook page) has been lackluster, which this issue would aim to improve. |
Closing this for now. Agree we will need to eventually think about deprecation more holistically. (Perhaps the next time we need to remove something major.) |
Right now we deprecate APIs in two releases, but we don't really alert users to what plugins are making deprecated APIs calls. We also always deprecate in two major versions, but it's possible in the future we want to deprecate in more than two versions.
If a plugin doesn't pay attention, eventually a user's editor will break and it will seem like it happened "unexpectedly".
Once a deprecation is imminent (1-2 versions away), we should show a modal/banner/etc. when a deprecated API is called and, if possible, flag the plugin that made the call. This will alert the user:
The text was updated successfully, but these errors were encountered: