Skip to content

Add support for keyset pagination in RepositoryClient #493

Description

@msrouchou

Activity

  1. jairbubbles commented on Jul 26, 2023

    @jairbubbles
    Collaborator

    Thinking of pagination, it's a mess right now, it is not supported on all APIs. Maybe we could at the same time rethink how it's done?

  2. meziantou commented on Jul 26, 2023

    @meziantou
    Contributor

    On other endpoints, NGitLab enables keyset pagination transparently if the parameters are ok. For instance,

    url = Utils.AddOrderBy(url, query.OrderBy, supportKeysetPagination: SupportKeysetPagination(query));
    . I think we can do the same for this endpoint.

  3. jairbubbles commented on Jul 26, 2023

    @jairbubbles
    Collaborator

    My problem was on the project commits API, there were no way to specify it. Hopefully it was already set to max page size.

  4. msrouchou commented on Oct 25, 2023

    @msrouchou
    MemberAuthor

    Just an FYI, when I created this issue, it was because I needed to get specific files knowing their extensions in GitLab.
    I discovered that you can use the search endpoint instead, which has a less known syntax.

    Example, I could just search for the file extensions I needed by calling

    /api/v4/projects/{id}/search?scope=blobs&search=extension:csproj

    you can also search by filename, path, etc https://docs.gitlab.com/ee/user/search/advanced_search.html#code-search

    I still cannot get over it, it made my life easier on so many levels 😆

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions