From 3408ce6947b4ae28e6e7c09856a58e4899888e75 Mon Sep 17 00:00:00 2001 From: Scott Cooper Date: Wed, 12 Nov 2025 12:10:14 -0800 Subject: [PATCH] fix(seer): Remove pagination from anomaly detection We send this endpoint the entire payload and it has the full response from seer, instead of paginating, return the entire response. --- .../seer/endpoints/organization_events_anomalies.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/sentry/seer/endpoints/organization_events_anomalies.py b/src/sentry/seer/endpoints/organization_events_anomalies.py index 12dcd870bd688f..5742b16ce111c7 100644 --- a/src/sentry/seer/endpoints/organization_events_anomalies.py +++ b/src/sentry/seer/endpoints/organization_events_anomalies.py @@ -9,7 +9,6 @@ from sentry.api.bases.organization import OrganizationAlertRulePermission from sentry.api.bases.organization_events import OrganizationEventsV2EndpointBase from sentry.api.exceptions import ResourceDoesNotExist -from sentry.api.paginator import OffsetPaginator from sentry.api.serializers.base import serialize from sentry.apidocs.constants import ( RESPONSE_BAD_REQUEST, @@ -97,9 +96,4 @@ def post(self, request: Request, organization: Organization) -> Response: if anomalies is None: return Response("Unable to get historical anomaly data", status=400) # NOTE: returns empty list if there is not enough event data - return self.paginate( - request=request, - queryset=anomalies, - paginator_cls=OffsetPaginator, - on_results=lambda x: serialize(x, request.user), - ) + return Response(serialize(anomalies, request.user))