Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/sentry/feedback/endpoints/project_user_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ class ProjectUserReportsEndpoint(ProjectEndpoint):
authentication_classes = ProjectEndpoint.authentication_classes + (DSNAuthentication,)

@extend_schema(
operation_id="List a Project's User Feedback",
operation_id="listProjectUserFeedback",
summary="List a Project's User Feedback",
parameters=[CursorQueryParam],
)
def get(self, request: Request, project) -> Response:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ class OrganizationMonitorCheckInIndexEndpoint(MonitorEndpoint, MonitorCheckInMix
owner = ApiOwner.CRONS

@extend_schema(
operation_id="Retrieve Check-Ins for a Monitor",
operation_id="listOrganizationMonitorCheckins",
summary="Retrieve Check-Ins for a Monitor",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
MonitorParams.MONITOR_ID_OR_SLUG,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ class OrganizationMonitorDetailsEndpoint(MonitorEndpoint, MonitorDetailsMixin):
owner = ApiOwner.CRONS

@extend_schema(
operation_id="Retrieve a Monitor",
operation_id="getOrganizationMonitor",
summary="Retrieve a Monitor",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
MonitorParams.MONITOR_ID_OR_SLUG,
Expand All @@ -57,7 +58,8 @@ def get(
return self.get_monitor(request, project, monitor)

@extend_schema(
operation_id="Update a Monitor",
operation_id="updateOrganizationMonitor",
summary="Update a Monitor",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
MonitorParams.MONITOR_ID_OR_SLUG,
Expand All @@ -80,7 +82,8 @@ def put(
return self.update_monitor(request, project, monitor)

@extend_schema(
operation_id="Delete a Monitor or Monitor Environments",
operation_id="deleteOrganizationMonitor",
summary="Delete a Monitor or Monitor Environments",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
MonitorParams.MONITOR_ID_OR_SLUG,
Expand Down
6 changes: 4 additions & 2 deletions src/sentry/monitors/endpoints/organization_monitor_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ class OrganizationMonitorIndexEndpoint(OrganizationAlertRuleBaseEndpoint):
permission_classes = (OrganizationAlertRulePermission,)

@extend_schema(
operation_id="Retrieve Monitors for an Organization",
operation_id="listOrganizationMonitors",
summary="Retrieve Monitors for an Organization",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
OrganizationParams.PROJECT,
Expand Down Expand Up @@ -270,7 +271,8 @@ def get(
)

@extend_schema(
operation_id="Create a Monitor",
operation_id="createOrganizationMonitor",
summary="Create a Monitor",
parameters=[GlobalParams.ORG_ID_OR_SLUG],
request=MonitorValidator,
responses={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ class ProjectMonitorCheckInIndexEndpoint(ProjectMonitorEndpoint, MonitorCheckInM
owner = ApiOwner.CRONS

@extend_schema(
operation_id="Retrieve Check-Ins for a Monitor by Project",
operation_id="listProjectMonitorCheckins",
summary="Retrieve Check-Ins for a Monitor by Project",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
GlobalParams.PROJECT_ID_OR_SLUG,
Expand Down
9 changes: 6 additions & 3 deletions src/sentry/monitors/endpoints/project_monitor_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ class ProjectMonitorDetailsEndpoint(ProjectMonitorEndpoint, MonitorDetailsMixin)
owner = ApiOwner.CRONS

@extend_schema(
operation_id="Retrieve a Monitor for a Project",
operation_id="getProjectMonitor",
summary="Retrieve a Monitor for a Project",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
GlobalParams.PROJECT_ID_OR_SLUG,
Expand All @@ -55,7 +56,8 @@ def get(self, request: Request, project, monitor) -> Response[MonitorSerializerR
return self.get_monitor(request, project, monitor)

@extend_schema(
operation_id="Update a Monitor for a Project",
operation_id="updateProjectMonitor",
summary="Update a Monitor for a Project",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
GlobalParams.PROJECT_ID_OR_SLUG,
Expand All @@ -79,7 +81,8 @@ def put(
return self.update_monitor(request, project, monitor)

@extend_schema(
operation_id="Delete a Monitor or Monitor Environments for a Project",
operation_id="deleteProjectMonitor",
summary="Delete a Monitor or Monitor Environments for a Project",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
GlobalParams.PROJECT_ID_OR_SLUG,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ def convert_args(self, request: Request, action_id: str, *args, **kwargs):
return (parsed_args, parsed_kwargs)

@extend_schema(
operation_id="Retrieve a Spike Protection Notification Action",
operation_id="getOrganizationNotificationsAction",
summary="Retrieve a Spike Protection Notification Action",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
NotificationParams.ACTION_ID,
Expand All @@ -122,7 +123,8 @@ def get(
return Response(body)

@extend_schema(
operation_id="Update a Spike Protection Notification Action",
operation_id="updateOrganizationNotificationsAction",
summary="Update a Spike Protection Notification Action",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
NotificationParams.ACTION_ID,
Expand Down Expand Up @@ -171,7 +173,8 @@ def put(
return Response(put_body, status=status.HTTP_202_ACCEPTED)

@extend_schema(
operation_id="Delete a Spike Protection Notification Action",
operation_id="deleteOrganizationNotificationsAction",
summary="Delete a Spike Protection Notification Action",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
NotificationParams.ACTION_ID,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ class NotificationActionsIndexEndpoint(OrganizationEndpoint):
permission_classes = (NotificationActionsPermission,)

@extend_schema(
operation_id="List Spike Protection Notifications",
operation_id="listOrganizationNotificationsActions",
summary="List Spike Protection Notifications",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
OrganizationParams.PROJECT,
Expand Down Expand Up @@ -121,7 +122,8 @@ def get(
)

@extend_schema(
operation_id="Create a Spike Protection Notification Action",
operation_id="createOrganizationNotificationsAction",
summary="Create a Spike Protection Notification Action",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ class OrganizationPreprodArtifactPublicInstallDetailsEndpoint(OrganizationEndpoi
)

@extend_schema(
operation_id="Retrieve install info for a given artifact",
operation_id="getOrganizationPreprodArtifactInstallDetails",
summary="Retrieve install info for a given artifact",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
OpenApiParameter(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ class OrganizationPreprodPublicSizeAnalysisEndpoint(OrganizationEndpoint):
}

@extend_schema(
operation_id="Retrieve Size Analysis results for a given artifact",
operation_id="getOrganizationPreprodArtifactSizeAnalysis",
summary="Retrieve Size Analysis results for a given artifact",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
OpenApiParameter(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ class ProjectPreprodBuildDistributionLatestEndpoint(ProjectEndpoint):
)

@extend_schema(
operation_id="Get the latest installable build for a project",
operation_id="getProjectInstallableBuildLatest",
summary="Get the latest installable build for a project",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
GlobalParams.PROJECT_ID_OR_SLUG,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ class ProjectPreprodSizeAnalysisStatusCheckRulesEndpoint(ProjectEndpoint):
)

@extend_schema(
operation_id="Retrieve Size Analysis status check rules for a project",
operation_id="getProjectPreprodSizeAnalysisStatusCheckRules",
summary="Retrieve Size Analysis status check rules for a project",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
GlobalParams.PROJECT_ID_OR_SLUG,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ class ProjectPreprodSnapshotStatusCheckRulesEndpoint(ProjectEndpoint):
)

@extend_schema(
operation_id="Retrieve Snapshot status check rules for a project",
operation_id="listProjectPreprodSnapshotsStatusCheckRules",
summary="Retrieve Snapshot status check rules for a project",
Comment thread
cursor[bot] marked this conversation as resolved.
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
GlobalParams.PROJECT_ID_OR_SLUG,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ class OrganizationPreprodSnapshotEndpoint(OrganizationEndpoint):
permission_classes = (OrganizationReleasePermission,)

@extend_schema(
operation_id="Delete a Snapshot",
operation_id="deleteOrganizationPreprodArtifactSnapshot",
summary="Delete a Snapshot",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
OpenApiParameter(
Expand Down Expand Up @@ -306,7 +307,8 @@ def delete(
return Response(status=204)

@extend_schema(
operation_id="Retrieve Snapshot details",
operation_id="getOrganizationPreprodArtifactSnapshot",
summary="Retrieve Snapshot details",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
OpenApiParameter(
Expand Down Expand Up @@ -657,7 +659,8 @@ class ProjectPreprodSnapshotEndpoint(ProjectEndpoint):
)

@extend_schema(
operation_id="Upload a Snapshot",
operation_id="uploadProjectPreprodArtifactSnapshot",
summary="Upload a Snapshot",
parameters=[GlobalParams.ORG_ID_OR_SLUG, GlobalParams.PROJECT_ID_OR_SLUG],
request=None,
responses={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ class OrganizationPreprodSnapshotImageDetailEndpoint(OrganizationEndpoint):
permission_classes = (OrganizationReleasePermission,)

@extend_schema(
operation_id="Retrieve Snapshot image detail",
operation_id="getOrganizationPreprodArtifactSnapshotImage",
summary="Retrieve Snapshot image detail",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
OpenApiParameter(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ class OrganizationPreprodLatestBaseSnapshotEndpoint(OrganizationEndpoint):
permission_classes = (OrganizationReleasePermission,)

@extend_schema(
operation_id="Retrieve latest base Snapshot",
operation_id="getOrganizationPreprodArtifactSnapshotLatestBase",
summary="Retrieve latest base Snapshot",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
OpenApiParameter(
Expand Down
6 changes: 4 additions & 2 deletions src/sentry/seer/endpoints/group_ai_autofix.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ class GroupAutofixEndpoint(GroupAiEndpoint):
)

@extend_schema(
operation_id="Start Seer Issue Fix",
operation_id="startOrganizationIssueAutofix",
summary="Start Seer Issue Fix",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
IssueParams.ISSUES_OR_GROUPS,
Expand Down Expand Up @@ -394,7 +395,8 @@ def post(
raise PermissionDenied(SEER_PERMISSION_DENIED)

@extend_schema(
operation_id="Retrieve Seer Issue Fix State",
operation_id="getOrganizationIssueAutofixState",
summary="Retrieve Seer Issue Fix State",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
IssueParams.ISSUES_OR_GROUPS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ class GroupExternalIssuesEndpoint(GroupEndpoint):
}

@extend_schema(
operation_id="Retrieve custom integration issue links for the given Sentry issue",
operation_id="listOrganizationIssueExternalIssues",
summary="Retrieve custom integration issue links for the given Sentry issue",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
IssueParams.ISSUES_OR_GROUPS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ class SentryAppInstallationExternalIssueDetailsEndpoint(ExternalIssueBaseEndpoin
}

@extend_schema(
operation_id="Delete an External Issue",
operation_id="deleteSentryAppInstallationExternalIssue",
summary="Delete an External Issue",
parameters=[SentryAppParams.INSTALLATION_UUID, _EXTERNAL_ISSUE_ID_PARAM],
responses={
204: RESPONSE_NO_CONTENT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ class OrganizationSentryAppsEndpoint(ControlSiloOrganizationEndpoint):
}

@extend_schema(
operation_id="Retrieve the custom integrations created by an organization",
operation_id="listOrganizationSentryApps",
summary="Retrieve the custom integrations created by an organization",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
],
Expand Down
9 changes: 6 additions & 3 deletions src/sentry/sentry_apps/api/endpoints/sentry_app_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ class SentryAppDetailsEndpoint(SentryAppBaseEndpoint):
allow_disabled_sentry_app_for_methods = {"DELETE", "PUT", "GET"}

@extend_schema(
operation_id="Retrieve a custom integration by ID or slug.",
operation_id="getSentryApp",
summary="Retrieve a custom integration by ID or slug.",
parameters=[
SentryAppParams.SENTRY_APP_ID_OR_SLUG,
],
Expand All @@ -103,7 +104,8 @@ def get(self, request: Request, sentry_app: SentryApp) -> Response[SentryAppSeri
)

@extend_schema(
operation_id="Update an existing custom integration.",
operation_id="updateSentryApp",
summary="Update an existing custom integration.",
parameters=[
SentryAppParams.SENTRY_APP_ID_OR_SLUG,
],
Expand Down Expand Up @@ -226,7 +228,8 @@ def put(
return Response(as_validation_errors(serializer), status=400)

@extend_schema(
operation_id="Delete a custom integration.",
operation_id="deleteSentryApp",
summary="Delete a custom integration.",
parameters=[
SentryAppParams.SENTRY_APP_ID_OR_SLUG,
],
Expand Down
Loading