Skip to content
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

Add consistency for the maximum_items_per_page option. #3088

Merged
merged 1 commit into from
Sep 24, 2019
Merged

Add consistency for the maximum_items_per_page option. #3088

merged 1 commit into from
Sep 24, 2019

Conversation

bpolaszek
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? yes
Tests pass? yes
Fixed tickets #3050
License MIT
Doc PR api-platform/docs#874

This PR introduces a pagination_maximum_items_per_page as the new source of truth for hard-limiting the number of items in a resultset.

Former attribute maximum_items_per_page still works as a fallback with a deprecation notice when used.

Rebased on 2.5, replaces #3086

@dunglas
Copy link
Member

dunglas commented Sep 24, 2019

Can you run php-cs-fixer please?

@bpolaszek
Copy link
Contributor Author

Sorry, I was sure I did it already.

@dunglas dunglas merged commit 78478a7 into api-platform:2.5 Sep 24, 2019
@dunglas
Copy link
Member

dunglas commented Sep 24, 2019

Thanks @bpolaszek

@bpolaszek bpolaszek deleted the maximumItemsPerPage branch October 1, 2019 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants