gitlab4j-api icon indicating copy to clipboard operation
gitlab4j-api copied to clipboard

how to get all projects when the total > 50000

Open king4sun opened this issue 3 years ago • 1 comments

Hello, I failed when the total project number is > 50000. Pager<Project> projectPager = gitLabApi.getProjectApi().getProjects(100); The error is org.gitlab4j.api.GitLabApiException: Offset pagination has a maximum allowed offset of 50000 for requests that return objects of type Project. Remaining records can be retrieved using keyset pagination

but I can not find keyset pagination in this repo. Could you tell where is it or how to get the rest of projects? Thank you in advance.

king4sun avatar Sep 22 '22 09:09 king4sun

I added this for the record. https://gitlab.com/gitlab-org/gitlab/-/merge_requests/68346

jabby avatar Sep 22 '22 23:09 jabby