-
Notifications
You must be signed in to change notification settings - Fork 36
Closed
Description
I noticed a strange thing about the results being returned in the collection, not all of them were returned.
I started investigating the reason and noticed the following thing: Pagination returns page values in the parameters in the order 0, 2, 3...
The first API call does not include the page attribute in parameters. The second API call includes params[:page] = 2
.
Accordingly, the following code in the gem begins to return incorrect results.
page_index = 0;
per_page = 10;
We will select records from 0 to 10
page_index = 2;
per_page = 10;
We will select records from 20 to 30 and skip records from 10 to 20.
Not sure if this is a bug in the code or pagination gem versions or something else. Maybe you could help with that?
Metadata
Metadata
Assignees
Labels
No labels