Skip to content

GHRepository#getIssues() takes 30s #2128

@Alathreon

Description

@Alathreon

Describe the bug
A clear and concise description of what the bug is.
I am using the method GHRepository#getIssues() to get all issues for auto complete purpose in a discord bot, but the problem is that there are more than 1000 issues and fetching them all takes 28s...
It could be partially patched by allowing the client to set a page size to large numbers, so it doesn't need to do a HTTP call 44 times.

To Reproduce
Steps to reproduce the behavior:

  • Have a repository with 1000+ issues
  • Call getIssues() with no filter

Expected behavior
A clear and concise description of what you expected to happen.
It should take much less time.

Desktop (please complete the following information):

  • Version 1.329
  • Tested in many Windows/Linux distributions

Additional context
Add any other context about the problem here.

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