Skip to content
Open
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
6 changes: 5 additions & 1 deletion src/sentry/issues/endpoints/group_activities.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ class GroupActivitiesEndpoint(GroupEndpoint):
"GET": ApiPublishStatus.PRIVATE,
}

@deprecated(CELL_API_DEPRECATION_DATE, url_names=["sentry-api-0-group-activities"])
@deprecated(
CELL_API_DEPRECATION_DATE,
suggested_api="sentry-api-0-organization-group-group-activities",
url_names=["sentry-api-0-group-activities"],
)
def get(self, request: Request, group: Group) -> Response:
"""
Retrieve all the Activities for a Group
Expand Down
6 changes: 5 additions & 1 deletion src/sentry/issues/endpoints/group_attachments.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ class GroupAttachmentsEndpoint(GroupEndpoint):
"GET": ApiPublishStatus.PRIVATE,
}

@deprecated(CELL_API_DEPRECATION_DATE, url_names=["sentry-api-0-group-attachments"])
@deprecated(
CELL_API_DEPRECATION_DATE,
suggested_api="sentry-api-0-organization-group-group-attachments",
url_names=["sentry-api-0-group-attachments"],
)
def get(self, request: Request, group) -> Response:
"""
List Event Attachments
Expand Down
6 changes: 5 additions & 1 deletion src/sentry/issues/endpoints/group_current_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ def _get_current_release(self, group, environments):
except IndexError:
return None

@deprecated(CELL_API_DEPRECATION_DATE, url_names=["sentry-api-0-group-current-release"])
@deprecated(
CELL_API_DEPRECATION_DATE,
suggested_api="sentry-api-0-organization-group-group-current-release",
url_names=["sentry-api-0-group-current-release"],
)
def get(self, request: Request, group) -> Response:
"""Get the current release in the group's project.

Expand Down
18 changes: 15 additions & 3 deletions src/sentry/issues/endpoints/group_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,11 @@ def finalize_response(
},
examples=IssueExamples.GROUP_DETAILS,
)
@deprecated(CELL_API_DEPRECATION_DATE, url_names=["sentry-api-0-group-details"])
@deprecated(
CELL_API_DEPRECATION_DATE,
suggested_api="sentry-api-0-organization-group-group-details",
url_names=["sentry-api-0-group-details"],
)
def get(self, request: Request, group: Group) -> Response[GroupDetailsResponse]:
"""
Return details on an individual issue, including its basic stats, comment
Expand Down Expand Up @@ -376,7 +380,11 @@ def get(self, request: Request, group: Group) -> Response[GroupDetailsResponse]:
404: RESPONSE_NOT_FOUND,
},
)
@deprecated(CELL_API_DEPRECATION_DATE, url_names=["sentry-api-0-group-details"])
@deprecated(
CELL_API_DEPRECATION_DATE,
suggested_api="sentry-api-0-organization-group-group-details",
url_names=["sentry-api-0-group-details"],
)
def put(
self, request: Request, group: Group
) -> Response[BaseGroupSerializerResponse] | Response[DetailResponse]:
Expand Down Expand Up @@ -447,7 +455,11 @@ def put(
404: RESPONSE_NOT_FOUND,
},
)
@deprecated(CELL_API_DEPRECATION_DATE, url_names=["sentry-api-0-group-details"])
@deprecated(
CELL_API_DEPRECATION_DATE,
suggested_api="sentry-api-0-organization-group-group-details",
url_names=["sentry-api-0-group-details"],
)
def delete(self, request: Request, group: Group) -> Response[None]:
"""
Asynchronously queue an individual issue for deletion.
Expand Down
6 changes: 5 additions & 1 deletion src/sentry/issues/endpoints/group_event_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,11 @@ class GroupEventDetailsEndpoint(GroupEndpoint):
},
examples=EventExamples.GROUP_EVENT_DETAILS,
)
@deprecated(CELL_API_DEPRECATION_DATE, url_names=["sentry-api-0-group-event-details"])
@deprecated(
CELL_API_DEPRECATION_DATE,
suggested_api="sentry-api-0-organization-group-group-event-details",
url_names=["sentry-api-0-group-event-details"],
)
def get(
self, request: Request, group: Group, event_id: str
) -> (
Expand Down
6 changes: 5 additions & 1 deletion src/sentry/issues/endpoints/group_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ class GroupEventsEndpoint(GroupEndpoint):
},
examples=EventExamples.GROUP_EVENTS_SIMPLE,
)
@deprecated(CELL_API_DEPRECATION_DATE, url_names=["sentry-api-0-group-events"])
@deprecated(
CELL_API_DEPRECATION_DATE,
suggested_api="sentry-api-0-organization-group-group-events",
url_names=["sentry-api-0-group-events"],
)
def get(
self, request: Request, group: Group
) -> Response[list[SimpleEventSerializerResponse]] | Response[DetailResponse]:
Expand Down
12 changes: 10 additions & 2 deletions src/sentry/issues/endpoints/group_hashes.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ class GroupHashesEndpoint(GroupEndpoint):
},
examples=EventExamples.GROUP_HASHES,
)
@deprecated(CELL_API_DEPRECATION_DATE, url_names=["sentry-api-0-group-hashes"])
@deprecated(
CELL_API_DEPRECATION_DATE,
suggested_api="sentry-api-0-organization-group-group-hashes",
url_names=["sentry-api-0-group-hashes"],
)
def get(self, request: Request, group: Group) -> Response[list[GroupHashesResult]]:
"""
List the hashes that make up an issue. Each hash represents a grouping
Expand Down Expand Up @@ -113,7 +117,11 @@ def get(self, request: Request, group: Group) -> Response[list[GroupHashesResult
paginator=GenericOffsetPaginator(data_fn=data_fn),
)

@deprecated(CELL_API_DEPRECATION_DATE, url_names=["sentry-api-0-group-hashes"])
@deprecated(
CELL_API_DEPRECATION_DATE,
suggested_api="sentry-api-0-organization-group-group-hashes",
url_names=["sentry-api-0-group-hashes"],
)
def put(self, request: Request, group: Group) -> Response:
"""
Perform an unmerge by reassigning events with hash values corresponding to the given
Expand Down
24 changes: 20 additions & 4 deletions src/sentry/issues/endpoints/group_integration_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,11 @@ class GroupIntegrationDetailsEndpoint(GroupEndpoint):
},
examples=IntegrationExamples.GROUP_INTEGRATION_ISSUE_CONFIG,
)
@deprecated(CELL_API_DEPRECATION_DATE, url_names=["sentry-api-0-group-integration-details"])
@deprecated(
CELL_API_DEPRECATION_DATE,
suggested_api="sentry-api-0-organization-group-group-integration-details",
url_names=["sentry-api-0-group-integration-details"],
)
def get(
self, request: Request, group: Group, integration_id: str
) -> Response[IntegrationIssueConfigResponse] | Response[DetailResponse]:
Expand Down Expand Up @@ -238,7 +242,11 @@ def get(
},
examples=IntegrationExamples.EXTERNAL_ISSUE_LINK,
)
@deprecated(CELL_API_DEPRECATION_DATE, url_names=["sentry-api-0-group-integration-details"])
@deprecated(
CELL_API_DEPRECATION_DATE,
suggested_api="sentry-api-0-organization-group-group-integration-details",
url_names=["sentry-api-0-group-integration-details"],
)
def post(
self, request: Request, group: Group, integration_id: str
) -> (
Expand Down Expand Up @@ -388,7 +396,11 @@ def post(
},
examples=IntegrationExamples.EXTERNAL_ISSUE_LINK,
)
@deprecated(CELL_API_DEPRECATION_DATE, url_names=["sentry-api-0-group-integration-details"])
@deprecated(
CELL_API_DEPRECATION_DATE,
suggested_api="sentry-api-0-organization-group-group-integration-details",
url_names=["sentry-api-0-group-integration-details"],
)
def put(
self, request: Request, group: Group, integration_id: str
) -> (
Expand Down Expand Up @@ -534,7 +546,11 @@ def put(
404: RESPONSE_NOT_FOUND,
},
)
@deprecated(CELL_API_DEPRECATION_DATE, url_names=["sentry-api-0-group-integration-details"])
@deprecated(
CELL_API_DEPRECATION_DATE,
suggested_api="sentry-api-0-organization-group-group-integration-details",
url_names=["sentry-api-0-group-integration-details"],
)
def delete(
self, request: Request, group: Group, integration_id: str
) -> Response[None] | Response[DetailResponse]:
Expand Down
6 changes: 5 additions & 1 deletion src/sentry/issues/endpoints/group_integrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ class GroupIntegrationsEndpoint(GroupEndpoint):
"GET": ApiPublishStatus.PRIVATE,
}

@deprecated(CELL_API_DEPRECATION_DATE, url_names=["sentry-api-0-group-integrations"])
@deprecated(
CELL_API_DEPRECATION_DATE,
suggested_api="sentry-api-0-organization-group-group-integrations",
url_names=["sentry-api-0-group-integrations"],
)
def get(self, request: Request, group) -> Response:
has_issue_basic = features.has(
"organizations:integrations-issue-basic", group.organization, actor=request.user
Expand Down
12 changes: 10 additions & 2 deletions src/sentry/issues/endpoints/group_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ class GroupNotesEndpoint(GroupEndpoint):
)
},
)
@deprecated(CELL_API_DEPRECATION_DATE, url_names=["sentry-api-0-group-notes"])
@deprecated(
CELL_API_DEPRECATION_DATE,
suggested_api="sentry-api-0-organization-group-group-notes",
url_names=["sentry-api-0-group-notes"],
)
def get(self, request: Request, group: Group) -> Response:
notes = Activity.objects.filter(group=group, type=ActivityType.NOTE.value)

Expand All @@ -63,7 +67,11 @@ def get(self, request: Request, group: Group) -> Response:
201: inline_sentry_response_serializer("CreateGroupNote", ActivitySerializerResponse)
},
)
@deprecated(CELL_API_DEPRECATION_DATE, url_names=["sentry-api-0-group-notes"])
@deprecated(
CELL_API_DEPRECATION_DATE,
suggested_api="sentry-api-0-organization-group-group-notes",
url_names=["sentry-api-0-group-notes"],
)
def post(self, request: Request, group: Group) -> Response:
if not request.user.is_authenticated:
raise PermissionDenied(detail="Key doesn't have permission to create Note")
Expand Down
12 changes: 10 additions & 2 deletions src/sentry/issues/endpoints/group_notes_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ class GroupNotesDetailsEndpoint(GroupEndpoint):
# an individual. Not sure if we'd want to allow an ApiKey
# to delete/update other users' comments
@extend_schema(responses={204: RESPONSE_NO_CONTENT})
@deprecated(CELL_API_DEPRECATION_DATE, url_names=["sentry-api-0-group-note-details"])
@deprecated(
CELL_API_DEPRECATION_DATE,
suggested_api="sentry-api-0-organization-group-group-note-details",
url_names=["sentry-api-0-group-note-details"],
)
def delete(self, request: Request, group: Group, note_id: str) -> Response:
if not request.user.is_authenticated:
raise PermissionDenied(detail="Key doesn't have permission to delete Note")
Expand Down Expand Up @@ -101,7 +105,11 @@ def delete(self, request: Request, group: Group, note_id: str) -> Response:
200: inline_sentry_response_serializer("UpdateGroupNote", ActivitySerializerResponse)
},
)
@deprecated(CELL_API_DEPRECATION_DATE, url_names=["sentry-api-0-group-note-details"])
@deprecated(
CELL_API_DEPRECATION_DATE,
suggested_api="sentry-api-0-organization-group-group-note-details",
url_names=["sentry-api-0-group-note-details"],
)
def put(self, request: Request, group: Group, note_id: str) -> Response:
if not request.user.is_authenticated:
raise PermissionDenied(detail="Key doesn't have permission to edit Note")
Expand Down
6 changes: 5 additions & 1 deletion src/sentry/issues/endpoints/group_reprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ class GroupReprocessingEndpoint(GroupEndpoint):
"POST": ApiPublishStatus.PRIVATE,
}

@deprecated(CELL_API_DEPRECATION_DATE, url_names=["sentry-api-0-group-reprocessing"])
@deprecated(
CELL_API_DEPRECATION_DATE,
suggested_api="sentry-api-0-organization-group-group-reprocessing",
url_names=["sentry-api-0-group-reprocessing"],
)
def post(self, request: Request, group) -> Response:
"""
Reprocess a group
Expand Down
6 changes: 5 additions & 1 deletion src/sentry/issues/endpoints/group_similar_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ class GroupSimilarIssuesEndpoint(GroupEndpoint):
"GET": ApiPublishStatus.PRIVATE,
}

@deprecated(CELL_API_DEPRECATION_DATE, url_names=["sentry-api-0-group-similar"])
@deprecated(
CELL_API_DEPRECATION_DATE,
suggested_api="sentry-api-0-organization-group-group-similar",
url_names=["sentry-api-0-group-similar"],
)
def get(self, request: Request, group: Group) -> Response:
# Any project using embeddings-based grouping will not work with this endpoint
if group.project.get_option("sentry:similarity_backfill_completed"):
Expand Down
6 changes: 5 additions & 1 deletion src/sentry/issues/endpoints/group_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ class GroupStatsEndpoint(GroupEndpoint, StatsMixin):
"GET": ApiPublishStatus.PRIVATE,
}

@deprecated(CELL_API_DEPRECATION_DATE, url_names=["sentry-api-0-group-stats"])
@deprecated(
CELL_API_DEPRECATION_DATE,
suggested_api="sentry-api-0-organization-group-group-stats",
url_names=["sentry-api-0-group-stats"],
)
def get(self, request: Request, group) -> Response:
try:
environment_id = get_environment_id(request, group.project.organization_id)
Expand Down
6 changes: 5 additions & 1 deletion src/sentry/issues/endpoints/group_tagkey_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ class GroupTagKeyDetailsEndpoint(GroupEndpoint):
},
examples=[TagsExamples.GROUP_TAGKEY_DETAILS],
)
@deprecated(CELL_API_DEPRECATION_DATE, url_names=["sentry-api-0-group-tag-key-details"])
@deprecated(
CELL_API_DEPRECATION_DATE,
suggested_api="sentry-api-0-organization-group-group-tag-key-details",
url_names=["sentry-api-0-group-tag-key-details"],
)
def get(self, request: Request, group, key) -> Response[TagKeySerializerResponse]:
"""
Returns the values and aggregate details of a given tag key related to an issue.
Expand Down
6 changes: 5 additions & 1 deletion src/sentry/issues/endpoints/group_tagkey_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ class GroupTagKeyValuesEndpoint(GroupEndpoint):
},
examples=[TagsExamples.GROUP_TAGKEY_VALUES],
)
@deprecated(CELL_API_DEPRECATION_DATE, url_names=["sentry-api-0-group-tag-key-values"])
@deprecated(
CELL_API_DEPRECATION_DATE,
suggested_api="sentry-api-0-organization-group-group-tag-key-values",
url_names=["sentry-api-0-group-tag-key-values"],
)
def get(self, request: Request, group, key) -> Response[list[TagValueSerializerResponse]]:
"""
List a Tag's Values
Expand Down
6 changes: 5 additions & 1 deletion src/sentry/issues/endpoints/group_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ class GroupTagsEndpoint(GroupEndpoint):
}
)

@deprecated(CELL_API_DEPRECATION_DATE, url_names=["sentry-api-0-group-tags"])
@deprecated(
CELL_API_DEPRECATION_DATE,
suggested_api="sentry-api-0-organization-group-group-tags",
url_names=["sentry-api-0-group-tags"],
)
def get(self, request: Request, group: Group) -> Response:
if request.GET.get("useFlagsBackend") == "1":
backend = tagstore.flag_backend
Expand Down
6 changes: 5 additions & 1 deletion src/sentry/issues/endpoints/group_user_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ class GroupUserReportsEndpoint(GroupEndpoint):
"GET": ApiPublishStatus.PRIVATE,
}

@deprecated(CELL_API_DEPRECATION_DATE, url_names=["sentry-api-0-group-user-reports"])
@deprecated(
CELL_API_DEPRECATION_DATE,
suggested_api="sentry-api-0-organization-group-group-user-reports",
url_names=["sentry-api-0-group-user-reports"],
)
def get(self, request: Request, group) -> Response:
"""
List User Reports
Expand Down
6 changes: 5 additions & 1 deletion src/sentry/issues/endpoints/related_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ class RelatedIssuesEndpoint(GroupEndpoint):
)

# We get a Group object since the endpoint is /issues/{issue_id}/related-issues
@deprecated(CELL_API_DEPRECATION_DATE, url_names=["sentry-api-0-related-issues"])
@deprecated(
CELL_API_DEPRECATION_DATE,
suggested_api="sentry-api-0-organization-group-related-issues",
url_names=["sentry-api-0-related-issues"],
)
def get(self, request: Request, group: Group) -> Response:
"""
Retrieve related issues for a Group
Expand Down
12 changes: 10 additions & 2 deletions src/sentry/seer/endpoints/group_ai_autofix.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,11 @@ class GroupAutofixEndpoint(GroupAiEndpoint):
},
examples=AutofixExamples.AUTOFIX_POST_RESPONSE,
)
@deprecated(CELL_API_DEPRECATION_DATE, url_names=["sentry-api-0-group-autofix"])
@deprecated(
CELL_API_DEPRECATION_DATE,
suggested_api="sentry-api-0-organization-group-group-autofix",
url_names=["sentry-api-0-group-autofix"],
)
def post(
self, request: Request, group: Group
) -> (
Expand Down Expand Up @@ -436,7 +440,11 @@ def post(
},
examples=AutofixExamples.AUTOFIX_GET_RESPONSE,
)
@deprecated(CELL_API_DEPRECATION_DATE, url_names=["sentry-api-0-group-autofix"])
@deprecated(
CELL_API_DEPRECATION_DATE,
suggested_api="sentry-api-0-organization-group-group-autofix",
url_names=["sentry-api-0-group-autofix"],
)
def get(self, request: Request, group: Group) -> Response[AutofixStateResponse]:
"""
Retrieve the current detailed state of an issue fix process for a specific issue including:
Expand Down
6 changes: 5 additions & 1 deletion src/sentry/seer/endpoints/group_ai_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ class GroupAiSummaryEndpoint(GroupAiEndpoint):
}
)

@deprecated(CELL_API_DEPRECATION_DATE, url_names=["sentry-api-0-group-ai-summary"])
@deprecated(
CELL_API_DEPRECATION_DATE,
suggested_api="sentry-api-0-organization-group-group-ai-summary",
url_names=["sentry-api-0-group-ai-summary"],
)
def post(self, request: Request, group: Group) -> Response:
data = orjson.loads(request.body) if request.body else {}
force_event_id = data.get("event_id", None)
Expand Down
Loading
Loading