Browse Source

Merge branch 'surendarrajasekaran-master-patch-46809' into 'master'

updated the datatype for the Project ID

See merge request glitchtip/glitchtip-backend!1176
David Burke 5 months ago
parent
commit
c3ef0f758c
1 changed files with 6 additions and 1 deletions
  1. 6 1
      apps/projects/schema.py

+ 6 - 1
apps/projects/schema.py

@@ -41,7 +41,7 @@ class ProjectSchema(NameSlugProjectSchema, ModelSchema):
     DSN keys, be connected to exactly one organization, and provide user permissions
     DSN keys, be connected to exactly one organization, and provide user permissions
     through teams.
     through teams.
     """
     """
-
+    id: str
     avatar: dict[str, Optional[str]] = {"avatarType": "", "avatarUuid": None}
     avatar: dict[str, Optional[str]] = {"avatarType": "", "avatarUuid": None}
     color: str = ""
     color: str = ""
     features: list = []
     features: list = []
@@ -66,6 +66,11 @@ class ProjectSchema(NameSlugProjectSchema, ModelSchema):
             "event_throttle_rate",  # Not in Sentry OSS
             "event_throttle_rate",  # Not in Sentry OSS
         ]
         ]
 
 
+    @staticmethod
+    def resolve_id(obj):
+        return str(obj.id)
+
+
     class Config(CamelSchema.Config):
     class Config(CamelSchema.Config):
         pass
         pass