Skip to content

Use keyset pagination instead of offset pagination #961

@mitar

Description

@mitar

Description of the problem, including code/CLI snippet

This package currently does pagination through page and per_page arguments. This can be problematic because some results could be skipped (for example, if some older result gets deleted in meantime).

See more information here:

Expected Behavior

Recently, GitLab (and already available on gitlab.com) supports also id_after and id_before. So this package could support iterating over many results by: ordering by ID and then using id_after to get the next set of results.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions