-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
docs(api): Update get team projects api to use drf/openapi #50676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #50676 +/- ##
=======================================
Coverage 81.17% 81.17%
=======================================
Files 4860 4861 +1
Lines 204027 204037 +10
Branches 11159 11159
=======================================
+ Hits 165618 165629 +11
+ Misses 38163 38162 -1
Partials 246 246
|
356a349
to
060f76f
Compare
060f76f
to
a68dc59
Compare
"/api/0/teams/{organization_slug}/{team_slug}/projects/": { | ||
"$ref": "paths/teams/projects.json" | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete path so both POST and GET can use drf-spectacular
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested the GET but can be safely deleted b/c type checking is done through drf-spectacular
@@ -231,6 +231,7 @@ class ProjectSerializerBaseResponse(_ProjectSerializerOptionalBaseResponse): | |||
firstTransactionEvent: bool | |||
access: List[str] | |||
hasAccess: bool | |||
hasMinifiedStackTrace: bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Project
model typed dict was missing this field
@@ -37,11 +37,14 @@ class OrganizationExamples: | |||
"hasSessions": True, | |||
"hasProfiles": True, | |||
"hasReplays": True, | |||
"hasMinifiedStackTrace": False, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This had to be added to this OpenApiExample to comply with adding the field to the Project Model typed dict
Update GET team projects to use drf-spectacular. All that's changed is the example 200 response and permission scopes. The new response can be seen in this github gist
Before:

After:
