Description
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.
- Legacy URL - here is our existing usage of that API.
- New API, scoped by org
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_id
s in the database.