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

Use slug-based APIs for team operations #212

Merged
merged 3 commits into from
Aug 14, 2020
Merged

Conversation

bluekeyes
Copy link
Member

@bluekeyes bluekeyes commented Jul 29, 2020

This reduces the total number of requests by eliminating calls to enumerate all teams, which were previously required to discover all team IDs and map them to names.

These APIs are only available on GitHub.com and in GitHub Enterprise 2.21 or newer, so policy-bot is no longer compatible with older versions of GitHub Enterprise.

I still need to fix up the tests and check to see if there are any other optimizations we should make to team operations.

Fixes #200.

This reduces the total number of requests by eliminating calls to
enumerate all teams, which were previously required to discover all team
IDs and map them to names.

These APIs are only available on GitHub.com and in GitHub Enterprise
2.21 or newer, so policy-bot is no longer compatible with older versions
of GitHub Enterprise.
@bluekeyes bluekeyes marked this pull request as ready for review July 30, 2020 20:57
@bluekeyes
Copy link
Member Author

bluekeyes commented Aug 7, 2020

Since this will cut off the number of GHE versions we support pretty dramatically, I intend to release it as v1.18.0 after releasing a v1.17.1 with some of the other performance improvements and changes that merged recently.

@bluekeyes bluekeyes merged commit e2d43d1 into develop Aug 14, 2020
@bluekeyes bluekeyes deleted the bkeyes/team-slug-apis branch August 14, 2020 19:23
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.

Use slug-based APIs for team operations
2 participants