-
Notifications
You must be signed in to change notification settings - Fork 110
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
fix to properly use max per page settings #3279
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested your branch and it works. Thank you!
@briri can I suggest you add logic to the Rest API version of V0 app/controllers/api/v0/base_api_controller.rb |
@briri The API V1 works fine and UI pagination. Found issue with API V0. It is broken. Error:
Please add pagination_params() to app/controllers/api/v0/base_controller.rb. It works when I added it in.
|
…ude functionality in the plans controller
thanks @johnpinto1. I had originally added the function there to mimic v1 but then realized that plans was the only paginated endpoint and it needed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @briri. Ready to merge @benjaminfaure
api_max_page_size
configuration parampaginable.rb
to useresults_per_page
instead ofapi_max_page_size