Repository navigation
Description
Description
Deprecating code, be it functions and args/options, should involve including something similar to the following within their respective function docstrings:
.. deprecated:: 3002,3001.1
This function is deprecated. Please use ``new_function()`` instead.This adds .. deprecated:: Sphinx / rst directives, which render into something like this, using salt.netapi.rest_cherrypy docs as an example, for the expire_responses option:
Deprecated since version 2016.11.9,2017.7.3,2018.3.0: The "expire_responses" configuration setting, which corresponds to the
timeout_monitorsetting in CherryPy, is no longer supported in CherryPy versions >= 12.0.0.
Source code of above example:
salt/salt/netapi/rest_cherrypy/app.py
Lines 109 to 117 in 1a5ce82
| expire_responses : True | |
| Whether to check for and kill HTTP responses that have exceeded the | |
| default timeout. | |
| .. deprecated:: 2016.11.9,2017.7.3,2018.3.0 | |
| The "expire_responses" configuration setting, which corresponds | |
| to the ``timeout_monitor`` setting in CherryPy, is no longer | |
| supported in CherryPy versions >= 12.0.0. |
The docs need to be updated here:
Additional context
Include examples, and provide best practice for function deprecation vs. arg/option deprecations, perhaps?
Activity
42 remaining items
dwoz commentedon Oct 15, 2026
Thanks for the original report. This issue has been open for more than three years without recent activity and carries a severity label below
severity-high. As part of a backlog cleanup, we're closing older low- and medium-severity issues so triage can focus on reports against currently supported releases.Closing isn't a judgement that the problem wasn't real — only that the codebase has moved through several releases since this was filed, and much of the surrounding code has changed.
If you — or anyone else — can still reproduce this on the 3008.x LTS release, please leave a comment with a reproduction and a maintainer will reopen. The original reporter can also reopen directly.
dwoz commentedon Oct 17, 2026
Reopening — there is an open PR tracking a fix for this: #69549.
dwoz commentedon Oct 28, 2026
Closing — consolidated into #70585. The checkbox for this item is in the appropriate theme section of that tracker. Please pick up the sub-item there.