[PATCH 02/10] REST: Add new setting for maximum API page size

Stephen Finucane stephen at that.guru
Wed May 1 03:49:44 AEST 2019

On Tue, 2019-04-30 at 16:03 +1000, Daniel Axtens wrote:
> From: Andrew Donnellan <andrew.donnellan at au1.ibm.com>
> In 41790caf59ad ("REST: Limit max page size") we limited the maximum page
> size to the default page size in the settings.
> This turns out to be rather restrictive, as we usually want to keep the
> default page size low, but an administrator may want to allow API clients
> to fetch more than that per request.
> Add a new setting, MAX_REST_RESULTS_PER_PAGE, to set the maximum page size.
> Closes: #202 ("Separate max API page size and default API page size into different settings")
> Suggested-by: Stewart Smith <stewart at linux.ibm.com>
> Suggested-by: Joel Stanley <joel at jms.id.au>
> Signed-off-by: Andrew Donnellan <andrew.donnellan at au1.ibm.com>
> [dja: set to 250 as per mailing list discussion]
> Signed-off-by: Daniel Axtens <dja at axtens.net>
> (cherry picked from commit 8fe11180a1a59f6e8e5a4441b21a3d9831f0b69d)
> Signed-off-by: Daniel Axtens <dja at axtens.net>


More information about the Patchwork mailing list