Add keyset pagination to instance and project audit events api
The following discussion from !91869 (merged) should be addressed:
-
@jprovaznik started a discussion: It seems audit_events can be listed also through ee/lib/api/audit_events.rb and ee/lib/ee/api/projects.rb - would it make sense to make the same change there too? Otherwise client would have to use different pagination strategies depending if events for project, group or global events are fetched.
Problem to solve
The Audit Events interfaces do not currently have pagination for Instance and Project level events. This is a problem when there are more than n events to display.
Pagination is not currently used because it is increasingly likely to cause a query timeout as the page number increases.
Proposal
On the Audit Events interfaces, implement keyset pagination (which does not have the same timeout risk as traditional offset pagination).