Skip to content

Commit

Permalink
cleanup: delete unused social-identities endpoints (#77231)
Browse files Browse the repository at this point in the history
The last usage of `/social-identities/` endpoints was removed in
#29230, 3 years ago.
  • Loading branch information
oioki committed Sep 13, 2024
1 parent 9391f21 commit 6b96e8f
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 150 deletions.
30 changes: 0 additions & 30 deletions src/sentry/api/endpoints/user_social_identities_index.py

This file was deleted.

60 changes: 0 additions & 60 deletions src/sentry/api/endpoints/user_social_identity_details.py

This file was deleted.

12 changes: 0 additions & 12 deletions src/sentry/api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,8 +668,6 @@
)
from .endpoints.user_organizationintegrations import UserOrganizationIntegrationsEndpoint
from .endpoints.user_organizations import UserOrganizationsEndpoint
from .endpoints.user_social_identities_index import UserSocialIdentitiesIndexEndpoint
from .endpoints.user_social_identity_details import UserSocialIdentityDetailsEndpoint
from .endpoints.user_subscriptions import UserSubscriptionsEndpoint

__all__ = ("urlpatterns",)
Expand Down Expand Up @@ -1091,16 +1089,6 @@ def create_group_urls(name_prefix: str) -> list[URLPattern | URLResolver]:
UserUserRoleDetailsEndpoint.as_view(),
name="sentry-api-0-user-userrole-details",
),
re_path(
r"^(?P<user_id>[^\/]+)/social-identities/$",
UserSocialIdentitiesIndexEndpoint.as_view(),
name="sentry-api-0-user-social-identities-index",
),
re_path(
r"^(?P<user_id>[^\/]+)/social-identities/(?P<identity_id>[^\/]+)/$",
UserSocialIdentityDetailsEndpoint.as_view(),
name="sentry-api-0-user-social-identity-details",
),
re_path(
r"^(?P<user_id>[^\/]+)/subscriptions/$",
UserSubscriptionsEndpoint.as_view(),
Expand Down
2 changes: 0 additions & 2 deletions src/sentry/apidocs/api_ownership_allowlist_dont_modify.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"/api/0/organizations/{organization_id_or_slug}/relay_usage/",
"/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/events/{event_id}/owners/",
"/api/0/organizations/{organization_id_or_slug}/data-export/{data_export_id}/",
"/api/0/users/{user_id}/social-identities/{identity_id}/",
"/api/0/users/{user_id}/identities/",
"/api/0/teams/{organization_id_or_slug}/{team_id_or_slug}/external-teams/{external_team_id}/",
"/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/artifact-lookup/",
Expand Down Expand Up @@ -91,7 +90,6 @@
"/api/0/sentry-apps-stats/",
"/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/teams/{team_id_or_slug}/",
"/api/0/monitors/{monitor_id_or_slug}/checkins/",
"/api/0/users/{user_id}/social-identities/",
"/api/0/organizations/{organization_id_or_slug}/discover/saved/",
"/api/0/organizations/{organization_id_or_slug}/integration-requests/",
"/extensions/vsts/issue-updated/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -804,8 +804,6 @@
"/api/0/users/{user_id}/permissions/{permission_name}/": {"DELETE", "GET", "POST"},
"/api/0/users/{user_id}/roles/": {"GET"},
"/api/0/users/{user_id}/roles/{role_name}/": {"DELETE", "GET", "POST"},
"/api/0/users/{user_id}/social-identities/": {"GET"},
"/api/0/users/{user_id}/social-identities/{identity_id}/": {"DELETE"},
"/api/0/users/{user_id}/subscriptions/": {"GET", "PUT", "POST"},
"/api/0/users/{user_id}/organization-integrations/": {"GET"},
"/api/0/users/{user_id}/user-identities/": {"GET"},
Expand Down
1 change: 0 additions & 1 deletion src/sentry/conf/api_pagination_allowlist_do_not_modify.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@
"UserPermissionsConfigEndpoint",
"UserPermissionsEndpoint",
"UserRolesEndpoint",
"UserSocialIdentitiesIndexEndpoint",
"UserSubscriptionsEndpoint",
"UserUserRolesEndpoint",
"VstsSearchEndpoint",
Expand Down
19 changes: 0 additions & 19 deletions tests/sentry/api/endpoints/test_user_social_identities_index.py

This file was deleted.

24 changes: 0 additions & 24 deletions tests/sentry/api/endpoints/test_user_social_identity_details.py

This file was deleted.

0 comments on commit 6b96e8f

Please sign in to comment.