-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
feat(discover): Add docs for organization_events #34768
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
- This adds a new doc sections for Visibility called `Discover and Performance`
@@ -17,6 +18,50 @@ class GLOBAL_PARAMS: | |||
type=str, | |||
location="path", | |||
) | |||
STATS_PERIOD = OpenApiParameter( |
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.
I think OpenApiParameter maps to URL parameters, not query parameters
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.
drf serializers map to query parameters
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.
I don't think so, its what the location
param on the OpenApiParameter is for so you can define whether the parameter is a part of the path
or the query
Based on docs you can do header, cookie or form parameters too:
https://drf-spectacular.readthedocs.io/en/latest/drf_yasg.html?highlight=location#parameter-location
@@ -46,6 +91,51 @@ class ISSUE_ALERT_PARAMS: | |||
) | |||
|
|||
|
|||
class VISIBILITY_PARAMS: | |||
QUERY = OpenApiParameter( |
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.
Is this a visibility-only param? I think we use it in several places outside of visibility.
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 is a specific Query
to Visibility (see the bit about the search syntax)
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.
Have some suggestions! Feel free to pick and choose or edit.
Co-authored-by: edwardgou-sentry <[email protected]> Co-authored-by: Ash Anand <[email protected]>
Discover and Performance
events
endpoint (which replaces the soon to be deprecatedeventsv2
endpoint) as the first endpoint in the documentationPreview