-
Notifications
You must be signed in to change notification settings - Fork 98
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
Document deprecation for API functions #865
Comments
The current approach to handling deprecated methods has been reported as insufficient by our API clients. Before implementing any changes, we should review existing standards to increase the likelihood of detecting issues using the existing CI checkers deployed by our dependents. |
I think it’s time to decide on an approach here. Following @inknos’s proposal, here are my suggestions: 🕙 Deprecation timeline documentationAlign with Fedora release cycles: mark objects or methods as deprecated at the start of a release and remove them in the subsequent release. Document this approach in our documentation. 📢 Deprecation signaling implementationDocumentation visibility Mark deprecated elements in docstrings with Optionally, create a dedicated deprecation list section. Build-time warnings for C++ users Use Runtime user notifications Define e.g. a |
WRT
After team discussions, we’ve decided to extend the deprecation period to allow users a smoother transition to the new API. Deprecations will be announced on the public mailing list and GitHub, with periodic reminders to remaining users of the deprecated API. Once all respondents have migrated, we will schedule the final removal. |
Currently, DNF5 does not have a clear policy on how to deprecate public API functions. We should document the process and be clear on how to intervene in such instances.
Take this commit, which generated the discussion, as an example.
The text was updated successfully, but these errors were encountered: