Keyset Pagination is not working for Jobs API Endpoint
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
A GitLab Premium customer reports that despite the documentation, keyset pagination is not working for the Jobs API endpoint.
Zendesk (internal only): https://gitlab.zendesk.com/agent/tickets/428532
Steps to reproduce
Using the Jobs API endpoint, attempt to get a list of jobs using keyset pagination.
Example API call (note: an admin account is required to view this):
https://gitlab.com/api/v4/projects/38787483/jobs?pagination=keyset&per_page=50&order_by=id&sort=asc
Error message:
{
"error": "Keyset pagination is not yet available for this type of request"
}
Example Project
If you have admin access to GitLab.com, you can view the customer's project, ID 38787483
What is the current bug behavior?
An error message is displayed.
What is the expected correct behavior?
Results should be shown keyset paginated.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
GitLab Enterprise Edition 16.2.0-pre eed25d50