- 
 
- 
  Notifications
 You must be signed in to change notification settings 
- Fork 1.1k
Fix enable pagination client in API Platform configuration #2204
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
Conversation
The pagination_client_enabled should be true instead of false to enable client side pagination.
@vinceAmstoutz The documentation on this point is confusing.
According to the configuration docs, pagination_client_enabled defaults to false. This means clients cannot use ?pagination=false to disable pagination, even though pagination itself is enabled by default.
Setting pagination_client_enabled=true allows clients to control pagination via the query parameter. I confirmed this behavior - when set to true, the pagination query option becomes available and clients can then disable pagination for specific requests.
The key distinction is:
- pagination_client_enabled=false: Pagination is always on, no client control
- pagination_client_enabled=true: Clients can choose to disable pagination with ?pagination=false
I just tried it and if the parameter is set to true, the pagination query option appear and then I can choose to actually disable the pagination for this endpoint:
image 
@vinceAmstoutz The documentation on this point is confusing.
According to the configuration docs,
pagination_client_enableddefaults tofalse. This means clients cannot use?pagination=falseto disable pagination, even though pagination itself is enabled by default.
Settingpagination_client_enabled=trueallows clients to control pagination via the query parameter. I confirmed this behavior - when set totrue, the pagination query option becomes available and clients can then disable pagination for specific requests.The key distinction is:
- pagination_client_enabled=false: Pagination is always on, no client control
- pagination_client_enabled=true: Clients can choose to disable pagination with ?pagination=false
I just tried it and if the parameter is set to true, the pagination query option appear and then I can choose to actually disable the pagination for this endpoint:
image
@pjehan Thanks for the additional information 🙂 I'm going to create a documentation PR to avoid any confusion on it and improve the DX(developer experience). Could you please update the PR description before? 🙏
Uh oh!
There was an error while loading. Please reload this page.
According to the configuration docs,
pagination_client_enableddefaults tofalse. This means clients cannot use?pagination=falseto disable pagination, even though pagination itself is enabled by default.Setting
pagination_client_enabled=trueallows clients to control pagination via the query parameter. I confirmed this behavior - when set totrue, the pagination query option becomes available and clients can then disable pagination for specific requests.The key distinction is: