Skip to content

Deprecation of GitHub teams API URL format that we use #2619

Closed
@jtgeibel

Description

@jtgeibel

While investigating #2617, I noticed a response header linking to this blog post about deprecation of the API URL we are using. It looks like we have until February 1st, 2021 to migrate to the new API path.

There are 2 forms of the new URL. The slug version GET /orgs/:org/teams/:team_slug/memberships/:username uses the org and team slugs, which we currently store in the database as teams.login in the form github:org:team. However my understanding is that with this format we'll probably also want to issue a separate API call to ensure teams.github_id matches the current team.

For the id based format, GET /organizations/:org_id/team/:team_id/memberships/:username, I don't believe that we currently track the org_id anywhere. Perhaps we could start tracking this and use the existing API (before it goes away) to backfill all the org_ids in the database.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions