You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(cells): Remove legacy non-org-scoped accept invite API route (#112767)
The `/api/0/accept-invite/{member_id}/{token}/` required no organization context, relying on a cell mapping lookup to determine the org. The org-scoped `/api/0/accept-invite/{organization_id_or_slug}/{member_id}/{token}/` is now the only supported route.
This PR removes the legacy API route and any references to it:
- Remove the URL pattern from api/urls.py
- Remove the legacy pattern from controlsiloUrlPatterns.ts (regenerated)
- Remove the legacy type from knownSentryApiUrls.generated.ts (regenerated)
- Remove entries from the apidocs ownership and publish status allowlists
It also cleans up `AcceptOrganizationInvite` and `get_invite_state` now that `organization_id_or_slug` is always provided:
- Fix member_id and organization_id_or_slug type annotations in convert_args and get() to the proper type, django passes kwargs as strings
- Drop `int | str` from `organization_id_or_slug` since no caller ever passes an integer
- Remove redundant str() wrapping on .isdecimal() call
- Remove dead not request.user.is_authenticated branch in post()
- Add TODO to further narrow type and remove None from get_invite_state once the temporary redirect is cleaned up
Removing this route is harmless as the web UI has been previously updated to always
use the new url in #112634. This is effectively dead code.
This is not a public URL that requires a formal deprecation process.
0 commit comments