Skip to content

Use keyset pagination instead of offset pagination #961

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions