Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination does not seem usable #502

Open
ad-si opened this issue Nov 20, 2023 · 1 comment
Open

Pagination does not seem usable #502

ad-si opened this issue Nov 20, 2023 · 1 comment

Comments

@ad-si
Copy link

ad-si commented Nov 20, 2023

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?

@414owen
Copy link
Contributor

414owen commented Jan 3, 2024

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants