Epics API endpoint does not paginate
When using the epics API, the results aren't paginated, and it's not possible to set the page size manually either:
$ curl -s -H "Private-Token: $GITLAB_API_TOKEN" https://gitlab.com/api/v4/groups/9970/epics | jq length
542
$ curl -s -H "Private-Token: $GITLAB_API_TOKEN" https://gitlab.com/api/v4/groups/9970/epics?per_page=20 | jq length
542
Original description below:
Summary
When trying to retrieve all epics from a group I get different results, for instance, I get 79 open on the web interface but over the API I get 84.
Other issues I noticed:
- State doesn't seem to have any effect as well.
- Pagination also not working properly, always returns the same 84 results
Steps to reproduce
https://gitlab.com/api/v4/groups/1454883/epics?private_token=<TOKEN>&state=opened&labels=Engineering&page=0
84 results - should return 79
Example Project
Group id: 1454883
What is the current bug behavior?
- Wrong amount of results being returned
- State query var doesn't seem to have any effect.
- Pagination not working properly, same 84 results always being returned
What is the expected correct behavior?
- Query vars
state, labels and page
should work as documented
Relevant logs and/or screenshots
N/A
Output of checks
N/A
Edited by Sean McGivern