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

fix: ensure /github/branches endpoint returns all branches #1393

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

ahal
Copy link
Contributor

@ahal ahal commented Jan 24, 2024

This endoint currently only fetches up to 100 branches from Github as this is the maximum number of objects you can get from a single query to the GraphQL endpoint.

But mozilla-vpn-client has well over 100 branches, and the release branches were being excluded from the query. Fix this by using pagination until all branches have been returned.

Issue: #1392

@ahal ahal requested a review from a team January 24, 2024 21:08
This endoint currently only fetches up to 100 branches from Github as
this is the maximum number of objects you can get from a single query to
the GraphQL endpoint.

But `mozilla-vpn-client` has well over 100 branches, and the `release`
branches were being excluded from the query. Fix this by using
pagination until all branches have been returned.

Issue: mozilla-releng#1392
@ahal ahal force-pushed the fix_list_branches branch from 1d508dc to 4629767 Compare January 24, 2024 21:17
@ahal ahal merged commit 7035801 into mozilla-releng:main Jan 25, 2024
9 checks passed
@ahal ahal deleted the fix_list_branches branch January 25, 2024 16:12
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

Successfully merging this pull request may close these issues.

2 participants