Skip to content

refac(internal/github): single graphql query to fetch all SSH keys at once - #723

Merged
gnarlex merged 2 commits into
mainfrom
bootstrap-ssh-graphql
Aug 26, 2026
Merged

refac(internal/github): single graphql query to fetch all SSH keys at once#723
gnarlex merged 2 commits into
mainfrom
bootstrap-ssh-graphql

Conversation

@gnarlex

@gnarlex gnarlex commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

We are making 1 list request to get all members of a team, and 1 get request for each member's ssh key. For large team's, this results in a lot of requests being made, which may quickly contribute to hitting GitHub API rate limits,

Make a single GraphQL query to get all keys at once.

@gnarlex gnarlex self-assigned this Aug 21, 2026

@OliverTrautvetter OliverTrautvetter left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good in general, some small stuff

Comment thread internal/github/github_client.go
Comment thread internal/github/github_client.go
Comment thread internal/github/github_client.go Outdated
Comment thread internal/github/github_client.go
Comment thread internal/github/github_client.go
@gnarlex
gnarlex force-pushed the bootstrap-ssh-graphql branch from c159061 to 6d58245 Compare August 21, 2026 15:15

@OliverTrautvetter OliverTrautvetter left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 🚀

@gnarlex
gnarlex force-pushed the bootstrap-ssh-graphql branch 2 times, most recently from 8c18468 to 5cd5d82 Compare August 25, 2026 08:56
… once

Signed-off-by: Alex Klein <alex@codesphere.com>
@gnarlex
gnarlex force-pushed the bootstrap-ssh-graphql branch from 5cd5d82 to a653d89 Compare August 26, 2026 12:12
Signed-off-by: gnarlex <24435169+gnarlex@users.noreply.github.com>
@gnarlex
gnarlex merged commit 60d164b into main Aug 26, 2026
7 of 8 checks passed
@gnarlex
gnarlex deleted the bootstrap-ssh-graphql branch August 26, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants