Skip to content

Pagination does not seem usable #502

Open

Description

@ad-si

If I execute a query like:

allRepos <-
    GH.github
      (OAuth $ fromString $ T.unpack githubToken)
      GH.searchReposR
      "stars:>1000"
      1

As soon as I increase the fetch count from 1 to 2 I'm getting rate limit errors.
Shouldn't there be a way to specify the rate at which the pages are fetched?

Is there a way to only request the second page to work around this issue?

Activity

  1. 414owen commented on Jan 3, 2024

    @414owen
    Contributor

    Hi @ad-si,

    I added pagination, as an improvement over only being able to access the first thirty results. I'm not sure why setting the minimum number of results to two uses up your API limits, maybe github is really mean with how it counts search complexity?

    I'm not a maintainer, but I'm sure a PR to add a page number parameter would be welcome.

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