-
Notifications
You must be signed in to change notification settings - Fork 486
Description
Hello.
I faced an issue with pagination while iterating by commits.
Gitlab4j API version: 4.15.7
I'm calling
api.getCommitsApi().getCommits(projectName, branchName, since, until, null, ITEMS_SIZE);
And a pager (Pager) hasNext() enternally returns true.
So, I'm stucking on:
while (pager.hasNext()) {
pager.next();
}
After pager initialization:
currentPage: 0, kaminariNextPage: 2, itemsPerPage: 100, currentItems: 111 (in my case), totalPages: -1, totalItems: -1.
The first page properties:
currentPage: 1, kaminariNextPage: 2, itemsPerPage: 100, currentItems: 111, totalPages: -1, totalItems: -1.
The second page properties:
currentPage: 2, kaminariNextPage: 3, itemsPerPage: 100, currentItems: 0, totalPages: -1, totalItems: -1.
The third page properties:
currentPage: 3, kaminariNextPage: 4, itemsPerPage: 100, currentItems: 0, totalPages: -1, totalItems: -1.
...
Thanks,
D-CURT.



