← Winnitude! Search  ·  Reader Mode (980 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 12 LINKS

Use keyset pagination instead of offset pagination · Issue #961 · python-gitlab/python-gitlab

Repository navigation

Use keyset pagination instead of offset pagination  #961


New issue

New issue

Open

Open
Use keyset pagination instead of offset pagination #961 Assignees max-wittig is assigned Labels
feature

Description

@mitar's profile mitar opened on Dec 7, 2019

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


feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions