Merge "Deprecate allow_sorting and allow_pagination options"

This commit is contained in:
Jenkins
2016-08-26 22:09:20 +00:00
committed by Gerrit Code Review
2 changed files with 11 additions and 2 deletions

View File

@@ -54,9 +54,14 @@ core_opts = [
cfg.BoolOpt('allow_bulk', default=True,
help=_("Allow the usage of the bulk API")),
cfg.BoolOpt('allow_pagination', default=True,
help=_("Allow the usage of the pagination")),
deprecated_for_removal=True,
help=_("Allow the usage of the pagination. This option has "
"been deprecated and will now be enabled "
"unconditionally.")),
cfg.BoolOpt('allow_sorting', default=True,
help=_("Allow the usage of the sorting")),
deprecated_for_removal=True,
help=_("Allow the usage of the sorting. This option has been "
"deprecated and will now be enabled unconditionally.")),
cfg.StrOpt('pagination_max_limit', default="-1",
help=_("The maximum number of items returned in a single "
"response, value was 'infinite' or negative integer "

View File

@@ -0,0 +1,4 @@
---
deprecations:
- The ``allow_sorting`` and ``allow_pagination`` configuration options
are deprecated and will be removed in a future release.