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

Fetch issue labels #16

Open
jwodder opened this issue Jul 13, 2024 · 0 comments · May be fixed by #19
Open

Fetch issue labels #16

jwodder opened this issue Jul 13, 2024 · 0 comments · May be fixed by #19
Labels
enhancement New feature or request therefor high priority Work on these first

Comments

@jwodder
Copy link
Owner

jwodder commented Jul 13, 2024

Allegedly, an issue cannot have more than 100 labels on it at once, so requesting an issue's first 100 labels should yield all of them without the need for special pagination.


Problem: Trying that just gave me the error:

Type: MAX_NODE_LIMIT_EXCEEDED
Message: By the time this query traverses to the labels connection, it is requesting up to 1,000,000 possible nodes which exceeds the maximum limit of 500,000.

For orgs-with-issues in particular, the page size has to be reduced to less than about sqrt(5000 / org_qty) in order for the command to succeed. Looks like I'll have to implement nested pagination....

  • Setting the labels page size to ten should be sufficient.
@jwodder jwodder added enhancement New feature or request therefor high priority Work on these first labels Jul 13, 2024
@jwodder jwodder linked a pull request Jul 14, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request therefor high priority Work on these first
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant