Skip to content

Search API not supporting "page" parameter. #1197

Closed
@YasharHND

Description

@YasharHND

Hi, thanks for providing the GitHub API client; it has been a great help for us.

But there's an issue we have with the searchIssues():
How can we query the search API by passing the page and per_page making sure that the client only fetches those addressed items?

For example, we need something like this:

client.searchIssues()
    .sort(GHIssueSearchBuilder.Sort.UPDATED)
    .order(GHDirection.DESC)
    .q("type:pr is:open")
    .list()
    .atPage(2)
    .withPageSize(10);
  • Please note that atPage is not supported at the moment.
  • Also, we don't want the client to fetch all of the items from GitHub but just the ones we've requested for.
  • This would be the resulting URL of our request:
    https://api.github.com/search/issues?q=type:pr%20is:open&sort=updated&order=desc&page=2&per_page=10

I saw some discussion regarding PagedIterable #348 but I'm not sure if that resolves our issue.

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions