Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ def _update_single_project_configuration(
@set_referrer_policy("strict-origin-when-cross-origin")
@method_decorator(never_cache)
@extend_schema(
operation_id="Update a Data Forwarder for an Organization",
operation_id="updateOrganizationForwarding",
summary="Update a Data Forwarder for an Organization",
parameters=[GlobalParams.ORG_ID_OR_SLUG, DataForwarderParams.DATA_FORWARDER_ID],
request=DataForwarderSerializer,
responses={
Expand Down Expand Up @@ -343,7 +344,8 @@ def put(
)

@extend_schema(
operation_id="Delete a Data Forwarder for an Organization",
operation_id="deleteOrganizationForwarding",
summary="Delete a Data Forwarder for an Organization",
parameters=[GlobalParams.ORG_ID_OR_SLUG, DataForwarderParams.DATA_FORWARDER_ID],
responses={
204: RESPONSE_NO_CONTENT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ class DataForwardingIndexEndpoint(OrganizationEndpoint):
permission_classes = (OrganizationDataForwardingDetailsPermission,)

@extend_schema(
operation_id="Retrieve Data Forwarders for an Organization",
operation_id="listOrganizationForwarding",
summary="Retrieve Data Forwarders for an Organization",
parameters=[GlobalParams.ORG_ID_OR_SLUG],
responses={
200: inline_sentry_response_serializer(
Expand All @@ -67,7 +68,8 @@ def get(self, request: Request, organization) -> Response[list[DataForwarderResp
)

@extend_schema(
operation_id="Create a Data Forwarder for an Organization",
operation_id="createOrganizationForwarding",
summary="Create a Data Forwarder for an Organization",
parameters=[GlobalParams.ORG_ID_OR_SLUG],
request=DataForwarderSerializer,
responses={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ def convert_args(
return args, kwargs

@extend_schema(
operation_id="Update an External Team",
operation_id="updateTeamExternalTeam",
summary="Update an External Team",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
GlobalParams.TEAM_ID_OR_SLUG,
Expand Down Expand Up @@ -100,7 +101,8 @@ def put(
return Response(as_validation_errors(serializer), status=status.HTTP_400_BAD_REQUEST)

@extend_schema(
operation_id="Delete an External Team",
operation_id="deleteTeamExternalTeam",
summary="Delete an External Team",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
GlobalParams.TEAM_ID_OR_SLUG,
Expand Down
3 changes: 2 additions & 1 deletion src/sentry/integrations/api/endpoints/external_team_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ class ExternalTeamEndpoint(TeamEndpoint, ExternalActorEndpointMixin):
owner = ApiOwner.INTEGRATION_PLATFORM

@extend_schema(
operation_id="Create an External Team",
operation_id="createTeamExternalTeam",
summary="Create an External Team",
parameters=[GlobalParams.ORG_ID_OR_SLUG, GlobalParams.TEAM_ID_OR_SLUG],
request=ExternalTeamSerializer,
responses={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ def convert_args(
return args, kwargs

@extend_schema(
operation_id="Update an External User",
operation_id="updateOrganizationExternalUser",
summary="Update an External User",
parameters=[GlobalParams.ORG_ID_OR_SLUG, OrganizationParams.EXTERNAL_USER_ID],
request=ExternalUserSerializer,
responses={
Expand Down Expand Up @@ -96,7 +97,8 @@ def put(
return Response(as_validation_errors(serializer), status=status.HTTP_400_BAD_REQUEST)

@extend_schema(
operation_id="Delete an External User",
operation_id="deleteOrganizationExternalUser",
summary="Delete an External User",
parameters=[GlobalParams.ORG_ID_OR_SLUG, OrganizationParams.EXTERNAL_USER_ID],
request=None,
responses={
Expand Down
3 changes: 2 additions & 1 deletion src/sentry/integrations/api/endpoints/external_user_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ class ExternalUserEndpoint(OrganizationEndpoint, ExternalActorEndpointMixin):
}

@extend_schema(
operation_id="Create an External User",
operation_id="createOrganizationExternalUser",
summary="Create an External User",
parameters=[GlobalParams.ORG_ID_OR_SLUG],
request=ExternalUserSerializer,
responses={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ class OrganizationConfigIntegrationsEndpoint(OrganizationEndpoint):
}

@extend_schema(
operation_id="Get Integration Provider Information",
operation_id="getOrganizationConfigIntegrations",
summary="Get Integration Provider Information",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
IntegrationParams.PROVIDER_KEY,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ class OrganizationIntegrationDetailsEndpoint(OrganizationIntegrationBaseEndpoint
}

@extend_schema(
operation_id="Retrieve an Integration for an Organization",
operation_id="getOrganizationIntegration",
summary="Retrieve an Integration for an Organization",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
GlobalParams.INTEGRATION_ID,
Expand Down Expand Up @@ -85,7 +86,8 @@ def get(
)

@extend_schema(
operation_id="Delete an Integration for an Organization",
operation_id="deleteOrganizationIntegration",
summary="Delete an Integration for an Organization",
parameters=[GlobalParams.ORG_ID_OR_SLUG, GlobalParams.INTEGRATION_ID],
responses={
204: RESPONSE_NO_CONTENT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ class OrganizationIntegrationsEndpoint(OrganizationIntegrationBaseEndpoint):
permission_classes = (OrganizationIntegrationsPermission,)

@extend_schema(
operation_id="List an Organization's Available Integrations",
operation_id="listOrganizationIntegrations",
summary="List an Organization's Available Integrations",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
IntegrationParams.PROVIDER_KEY,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ class OrganizationRepositoriesEndpoint(OrganizationEndpoint):
)

@extend_schema(
operation_id="List an Organization's Repositories",
operation_id="listOrganizationRepos",
summary="List an Organization's Repositories",
description="Return a list of version control repositories for a given organization.",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ class OrganizationRepositoryCommitsEndpoint(OrganizationEndpoint):
}

@extend_schema(
operation_id="List a Repository's Commits",
operation_id="listOrganizationRepoCommits",
summary="List a Repository's Commits",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
OpenApiParameter(
Expand Down
9 changes: 6 additions & 3 deletions src/sentry/issues/endpoints/group_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ def finalize_response(
return response

@extend_schema(
operation_id="Retrieve an Issue",
operation_id="getOrganizationIssue",
summary="Retrieve an Issue",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
IssueParams.ISSUES_OR_GROUPS,
Expand Down Expand Up @@ -377,7 +378,8 @@ def get(self, request: Request, group: Group) -> Response[GroupDetailsResponse]:
raise

@extend_schema(
operation_id="Update an Issue",
operation_id="updateOrganizationIssue",
summary="Update an Issue",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
IssueParams.ISSUES_OR_GROUPS,
Expand Down Expand Up @@ -451,7 +453,8 @@ def put(
return Response(body, status=e.status_code)

@extend_schema(
operation_id="Remove an Issue",
operation_id="deleteOrganizationIssue",
summary="Remove an Issue",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
IssueParams.ISSUES_OR_GROUPS,
Expand Down
3 changes: 2 additions & 1 deletion src/sentry/issues/endpoints/group_event_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ class GroupEventDetailsEndpoint(GroupEndpoint):
)

@extend_schema(
operation_id="Retrieve an Issue Event",
operation_id="getOrganizationIssueEvent",
summary="Retrieve an Issue Event",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
IssueParams.ISSUES_OR_GROUPS,
Expand Down
3 changes: 2 additions & 1 deletion src/sentry/issues/endpoints/group_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ class GroupEventsEndpoint(GroupEndpoint):
owner = ApiOwner.ISSUES

@extend_schema(
operation_id="List an Issue's Events",
operation_id="listOrganizationIssueEvents",
summary="List an Issue's Events",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
IssueParams.ISSUES_OR_GROUPS,
Expand Down
3 changes: 2 additions & 1 deletion src/sentry/issues/endpoints/group_hashes.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ class GroupHashesEndpoint(GroupEndpoint):
}

@extend_schema(
operation_id="List an Issue's Hashes",
operation_id="listOrganizationIssueHashes",
summary="List an Issue's Hashes",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
IssueParams.ISSUES_OR_GROUPS,
Expand Down
3 changes: 2 additions & 1 deletion src/sentry/issues/endpoints/group_tagkey_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ class GroupTagKeyDetailsEndpoint(GroupEndpoint):
)

@extend_schema(
operation_id="Retrieve Tag Details",
operation_id="getOrganizationIssueTag",
summary="Retrieve Tag Details",
description="Return a list of values associated with this key for an issue. When paginated can return at most 1000 values.",
parameters=[
IssueParams.ISSUE_ID,
Expand Down
3 changes: 2 additions & 1 deletion src/sentry/issues/endpoints/group_tagkey_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ class GroupTagKeyValuesEndpoint(GroupEndpoint):
)

@extend_schema(
operation_id="List a Tag's Values for an Issue",
operation_id="listOrganizationIssueTagValues",
summary="List a Tag's Values for an Issue",
description="Returns a list of values associated with this key for an issue.\nReturns at most 1000 values when paginated.",
parameters=[
IssueParams.ISSUE_ID,
Expand Down
3 changes: 2 additions & 1 deletion src/sentry/issues/endpoints/organization_eventid.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ class EventIdLookupEndpoint(OrganizationEndpoint):
)

@extend_schema(
operation_id="Resolve an Event ID",
operation_id="resolveOrganizationEventId",
summary="Resolve an Event ID",
parameters=[GlobalParams.ORG_ID_OR_SLUG, GlobalParams.EVENT_ID],
request=None,
responses={
Expand Down
9 changes: 6 additions & 3 deletions src/sentry/issues/endpoints/organization_group_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,8 @@ def _search(
return search_issues(request, organization, projects, environments, extra_query_kwargs)

@extend_schema(
operation_id="List an Organization's Issues",
operation_id="listOrganizationIssues",
summary="List an Organization's Issues",
description=(
"Return a list of issues for an organization. "
"All parameters are supplied as query string parameters. "
Expand Down Expand Up @@ -474,7 +475,8 @@ def get(
return response

@extend_schema(
operation_id="Bulk Mutate an Organization's Issues",
operation_id="updateOrganizationIssues",
summary="Bulk Mutate an Organization's Issues",
description=(
"Bulk mutate various attributes on a maxmimum of 1000 issues. \n"
"- For non-status updates, the `id` query parameter is required. \n"
Expand Down Expand Up @@ -521,7 +523,8 @@ def put(self, request: Request, organization: Organization) -> Response[MutateIs
return update_groups_with_search_fn(request, ids, projects, organization.id, search_fn)

@extend_schema(
operation_id="Bulk Remove an Organization's Issues",
operation_id="deleteOrganizationIssues",
summary="Bulk Remove an Organization's Issues",
description=(
"Permanently remove the given issues. "
"If IDs are provided, queries and filtering will be ignored. "
Expand Down
3 changes: 2 additions & 1 deletion src/sentry/issues/endpoints/organization_shortid.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ class ShortIdLookupEndpoint(GroupEndpoint):
}

@extend_schema(
operation_id="Resolve a Short ID",
operation_id="resolveOrganizationShortId",
summary="Resolve a Short ID",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
OpenApiParameter(
Expand Down
3 changes: 2 additions & 1 deletion src/sentry/issues/endpoints/project_event_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ class ProjectEventDetailsEndpoint(ProjectEndpoint):
)

@extend_schema(
operation_id="Retrieve an Event for a Project",
operation_id="getProjectEvent",
summary="Retrieve an Event for a Project",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
GlobalParams.PROJECT_ID_OR_SLUG,
Expand Down
3 changes: 2 additions & 1 deletion src/sentry/issues/endpoints/project_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ class ProjectEventsEndpoint(ProjectEndpoint):
)

@extend_schema(
operation_id="List a Project's Error Events",
operation_id="listProjectEvents",
summary="List a Project's Error Events",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
GlobalParams.PROJECT_ID_OR_SLUG,
Expand Down
3 changes: 2 additions & 1 deletion src/sentry/issues/endpoints/project_group_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ class ProjectGroupIndexEndpoint(ProjectEndpoint):
)

@extend_schema(
operation_id="List a Project's Issues",
operation_id="listProjectIssues",
summary="List a Project's Issues",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
GlobalParams.PROJECT_ID_OR_SLUG,
Expand Down
6 changes: 4 additions & 2 deletions src/sentry/issues/endpoints/project_ownership.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ def rename_schema_identifier_for_parsing(self, ownership: ProjectOwnership) -> N
rule_owner["name"] = rule_owner.pop("identifier")

@extend_schema(
operation_id="Retrieve Ownership Configuration for a Project",
operation_id="getProjectOwnership",
summary="Retrieve Ownership Configuration for a Project",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
GlobalParams.PROJECT_ID_OR_SLUG,
Expand All @@ -295,7 +296,8 @@ def get(self, request: Request, project) -> Response[ProjectOwnershipResponse]:
return Response(body)

@extend_schema(
operation_id="Update Ownership Configuration for a Project",
operation_id="updateProjectOwnership",
summary="Update Ownership Configuration 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 @@ -26,7 +26,8 @@ class OrganizationReleaseCommitsEndpoint(OrganizationReleasesBaseEndpoint):
}

@extend_schema(
operation_id="List an Organization Release's Commits",
operation_id="listOrganizationReleaseCommits",
summary="List an Organization Release's Commits",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
ReleaseParams.VERSION,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ class OrganizationReleaseDetailsEndpoint(
}

@extend_schema(
operation_id="Retrieve an Organization's Release",
operation_id="getOrganizationRelease",
summary="Retrieve an Organization's Release",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
ReleaseParams.VERSION,
Expand Down Expand Up @@ -469,7 +470,8 @@ def get(
return Response(data)

@extend_schema(
operation_id="Update an Organization's Release",
operation_id="updateOrganizationRelease",
summary="Update an Organization's Release",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
ReleaseParams.VERSION,
Expand Down Expand Up @@ -595,7 +597,8 @@ def put(
return Response(data)

@extend_schema(
operation_id="Delete an Organization's Release",
operation_id="deleteOrganizationRelease",
summary="Delete an Organization's Release",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
ReleaseParams.VERSION,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ class OrganizationReleaseFileDetailsEndpoint(
}

@extend_schema(
operation_id="Retrieve an Organization Release's File",
operation_id="getOrganizationReleaseFile",
summary="Retrieve an Organization Release's File",
parameters=[
GlobalParams.ORG_ID_OR_SLUG,
ReleaseParams.VERSION,
Expand Down Expand Up @@ -118,7 +119,8 @@ def put(
return self.update_releasefile(request, release, file_id)

@extend_schema(
operation_id="Delete an Organization Release's File",
operation_id="deleteOrganizationReleaseFile",
summary="Delete an Organization Release's File",
parameters=[GlobalParams.ORG_ID_OR_SLUG, ReleaseParams.VERSION, ReleaseParams.FILE_ID],
responses={
204: RESPONSE_NO_CONTENT,
Expand Down
Loading
Loading