Skip to content

Warn about Search index cap when user has requested more than a 1000 results #3839

@mislav

Description

@mislav

When using gh pr list --limit N --label foo, only 1000 results will get returned at maximum, even if the user requested N > 1000.

This is because we switch to the Search API for --label lookups #3295, and the Search API only ever returns a maximum of 1000 results, even with pagination.

We could try providing some warning on stderr when --limit was used with a value greater than 1,000 and when the resulting query will be backed by search.

Originally posted by @mislav in #3836 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority-3Affects a small number of users or is largely cosmetic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions