Skip to content

Set maximum records limit per-page in config. - #3171

Open
gemul wants to merge 1 commit into
yajra:masterfrom
gemul:master
Open

Set maximum records limit per-page in config.#3171
gemul wants to merge 1 commit into
yajra:masterfrom
gemul:master

Conversation

@gemul

@gemul gemul commented Aug 26, 2024

Copy link
Copy Markdown

This PR adds a max_limit configuration to prevent end-users from arbitrarily setting a large value for the length request parameter, which could otherwise cause the server to overload if not handled manually (e.g., in middleware).

If the length value exceeds this limit, it will be overridden with the specified max_limit.

The default value is 100.

@sonarqubecloud

Copy link
Copy Markdown

@yajra

yajra commented Sep 9, 2024

Copy link
Copy Markdown
Owner

Thanks for the PR! The changes look good, however, I suspect this might break the export functionality of buttons package.

Will check further when I get the chance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants