Skip to content

Commit f90e782

Browse files
cvxluoclaudegetsantry[bot]
authored andcommitted
ref(supergruops): remove list-all endpoint (#112259)
Only consumer of this endpoint was the standalone supergroups page and that was removed. --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
1 parent 9b46f2b commit f90e782

File tree

4 files changed

+0
-80
lines changed

4 files changed

+0
-80
lines changed

src/sentry/api/urls.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -563,9 +563,6 @@
563563
from sentry.seer.supergroups.endpoints.organization_supergroup_details import (
564564
OrganizationSupergroupDetailsEndpoint,
565565
)
566-
from sentry.seer.supergroups.endpoints.organization_supergroups import (
567-
OrganizationSupergroupsEndpoint,
568-
)
569566
from sentry.seer.supergroups.endpoints.organization_supergroups_by_group import (
570567
OrganizationSupergroupsByGroupEndpoint,
571568
)
@@ -2439,11 +2436,6 @@ def create_group_urls(name_prefix: str) -> list[URLPattern | URLResolver]:
24392436
OrganizationSeerExplorerUpdateEndpoint.as_view(),
24402437
name="sentry-api-0-organization-seer-explorer-update",
24412438
),
2442-
re_path(
2443-
r"^(?P<organization_id_or_slug>[^/]+)/seer/supergroups/$",
2444-
OrganizationSupergroupsEndpoint.as_view(),
2445-
name="sentry-api-0-organization-supergroups",
2446-
),
24472439
re_path(
24482440
r"^(?P<organization_id_or_slug>[^/]+)/seer/supergroups/by-group/$",
24492441
OrganizationSupergroupsByGroupEndpoint.as_view(),

src/sentry/seer/signed_seer_api.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -347,13 +347,6 @@ class SupergroupsEmbeddingRequest(TypedDict):
347347
artifact_data: dict[str, Any]
348348

349349

350-
class SupergroupsListRequest(TypedDict):
351-
organization_id: int
352-
offset: NotRequired[int | None]
353-
limit: NotRequired[int | None]
354-
project_ids: NotRequired[list[int] | None]
355-
356-
357350
class SupergroupsGetRequest(TypedDict):
358351
organization_id: int
359352
supergroup_id: int
@@ -463,20 +456,6 @@ def make_supergroups_embedding_request(
463456
)
464457

465458

466-
def make_supergroups_list_request(
467-
body: SupergroupsListRequest,
468-
viewer_context: SeerViewerContext,
469-
timeout: int | float | None = None,
470-
) -> BaseHTTPResponse:
471-
return make_signed_seer_api_request(
472-
seer_autofix_default_connection_pool,
473-
"/v0/issues/supergroups/list",
474-
body=orjson.dumps(body),
475-
timeout=timeout,
476-
viewer_context=viewer_context,
477-
)
478-
479-
480459
def make_supergroups_get_request(
481460
body: SupergroupsGetRequest,
482461
viewer_context: SeerViewerContext,

src/sentry/seer/supergroups/endpoints/organization_supergroups.py

Lines changed: 0 additions & 50 deletions
This file was deleted.

static/app/utils/api/knownSentryApiUrls.generated.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,6 @@ export type KnownSentryApiUrls =
562562
| '/organizations/$organizationIdOrSlug/seer/explorer-update/$runId/'
563563
| '/organizations/$organizationIdOrSlug/seer/onboarding-check/'
564564
| '/organizations/$organizationIdOrSlug/seer/setup-check/'
565-
| '/organizations/$organizationIdOrSlug/seer/supergroups/'
566565
| '/organizations/$organizationIdOrSlug/seer/supergroups/$supergroupId/'
567566
| '/organizations/$organizationIdOrSlug/seer/supergroups/by-group/'
568567
| '/organizations/$organizationIdOrSlug/sent-first-event/'

0 commit comments

Comments
 (0)