Browse Source

feat(discover): Update drf-spectacular to latest (#34722)

- Updates the `drf-spectacular` library to latest, to get `many` support
  for the parameters
- Needed to rename the org stats name since spaces are no longer
  supported
William Mak 2 years ago
parent
commit
c20f8e9884
2 changed files with 2 additions and 2 deletions
  1. 1 1
      requirements-base.txt
  2. 1 1
      src/sentry/api/endpoints/organization_stats_v2.py

+ 1 - 1
requirements-base.txt

@@ -13,7 +13,7 @@ django-picklefield==2.1.0
 django-pg-zero-downtime-migrations==0.10
 Django==2.2.28
 djangorestframework==3.11.2
-drf-spectacular==0.21.0
+drf-spectacular==0.22.1
 email-reply-parser==0.5.12
 google-api-core==1.25.1
 google-auth==1.24.0

+ 1 - 1
src/sentry/api/endpoints/organization_stats_v2.py

@@ -142,7 +142,7 @@ class OrganizationStatsEndpointV2(OrganizationEventsEndpointBase):
         parameters=[GLOBAL_PARAMS.ORG_SLUG, OrgStatsQueryParamsSerializer],
         request=None,
         responses={
-            200: inline_sentry_response_serializer("Outcomes Response", StatsApiResponse),
+            200: inline_sentry_response_serializer("OutcomesResponse", StatsApiResponse),
             401: RESPONSE_UNAUTHORIZED,
             404: RESPONSE_NOTFOUND,
         },