Skip to content

Commit 1e7cbbb

Browse files
ceorourkegetsantry[bot]
authored andcommitted
chore(alerts): Rm unused incidents endpoints (#81026)
Remove several incidents endpoints that are completely unused. It seems like they were built for some features between 2020 and 2021 but were removed. I double checked the API access logs to make sure nobody is using these. There are some tables related to these features that I'll drop in future PRs as well. --------- Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
1 parent 7fd331c commit 1e7cbbb

12 files changed

+0
-765
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ module = [
198198
"sentry.incidents.endpoints.bases",
199199
"sentry.incidents.endpoints.organization_alert_rule_details",
200200
"sentry.incidents.endpoints.organization_alert_rule_index",
201-
"sentry.incidents.endpoints.organization_incident_comment_details",
202201
"sentry.incidents.endpoints.organization_incident_index",
203202
"sentry.incidents.subscription_processor",
204203
"sentry.incidents.tasks",

src/sentry/api/urls.py

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -100,23 +100,10 @@
100100
OrganizationAlertRuleIndexEndpoint,
101101
OrganizationCombinedRuleIndexEndpoint,
102102
)
103-
from sentry.incidents.endpoints.organization_incident_activity_index import (
104-
OrganizationIncidentActivityIndexEndpoint,
105-
)
106-
from sentry.incidents.endpoints.organization_incident_comment_details import (
107-
OrganizationIncidentCommentDetailsEndpoint,
108-
)
109-
from sentry.incidents.endpoints.organization_incident_comment_index import (
110-
OrganizationIncidentCommentIndexEndpoint,
111-
)
112103
from sentry.incidents.endpoints.organization_incident_details import (
113104
OrganizationIncidentDetailsEndpoint,
114105
)
115106
from sentry.incidents.endpoints.organization_incident_index import OrganizationIncidentIndexEndpoint
116-
from sentry.incidents.endpoints.organization_incident_seen import OrganizationIncidentSeenEndpoint
117-
from sentry.incidents.endpoints.organization_incident_subscription_index import (
118-
OrganizationIncidentSubscriptionIndexEndpoint,
119-
)
120107
from sentry.incidents.endpoints.project_alert_rule_details import ProjectAlertRuleDetailsEndpoint
121108
from sentry.incidents.endpoints.project_alert_rule_index import ProjectAlertRuleIndexEndpoint
122109
from sentry.incidents.endpoints.project_alert_rule_task_details import (
@@ -1206,21 +1193,6 @@ def create_group_urls(name_prefix: str) -> list[URLPattern | URLResolver]:
12061193
name="sentry-api-0-data-secrecy",
12071194
),
12081195
# Incidents
1209-
re_path(
1210-
r"^(?P<organization_id_or_slug>[^\/]+)/incidents/(?P<incident_identifier>[^\/]+)/activity/$",
1211-
OrganizationIncidentActivityIndexEndpoint.as_view(),
1212-
name="sentry-api-0-organization-incident-activity",
1213-
),
1214-
re_path(
1215-
r"^(?P<organization_id_or_slug>[^\/]+)/incidents/(?P<incident_identifier>[^\/]+)/comments/$",
1216-
OrganizationIncidentCommentIndexEndpoint.as_view(),
1217-
name="sentry-api-0-organization-incident-comments",
1218-
),
1219-
re_path(
1220-
r"^(?P<organization_id_or_slug>[^\/]+)/incidents/(?P<incident_identifier>[^\/]+)/comments/(?P<activity_id>[^\/]+)/$",
1221-
OrganizationIncidentCommentDetailsEndpoint.as_view(),
1222-
name="sentry-api-0-organization-incident-comment-details",
1223-
),
12241196
re_path(
12251197
r"^(?P<organization_id_or_slug>[^\/]+)/incidents/(?P<incident_identifier>[^\/]+)/$",
12261198
OrganizationIncidentDetailsEndpoint.as_view(),
@@ -1231,16 +1203,6 @@ def create_group_urls(name_prefix: str) -> list[URLPattern | URLResolver]:
12311203
OrganizationIncidentIndexEndpoint.as_view(),
12321204
name="sentry-api-0-organization-incident-index",
12331205
),
1234-
re_path(
1235-
r"^(?P<organization_id_or_slug>[^\/]+)/incidents/(?P<incident_identifier>[^\/]+)/seen/$",
1236-
OrganizationIncidentSeenEndpoint.as_view(),
1237-
name="sentry-api-0-organization-incident-seen",
1238-
),
1239-
re_path(
1240-
r"^(?P<organization_id_or_slug>[^\/]+)/incidents/(?P<incident_identifier>[^\/]+)/subscriptions/$",
1241-
OrganizationIncidentSubscriptionIndexEndpoint.as_view(),
1242-
name="sentry-api-0-organization-incident-subscription-index",
1243-
),
12441206
re_path(
12451207
r"^(?P<organization_id_or_slug>[^\/]+)/chunk-upload/$",
12461208
ChunkUploadEndpoint.as_view(),

src/sentry/incidents/endpoints/organization_incident_activity_index.py

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/sentry/incidents/endpoints/organization_incident_comment_details.py

Lines changed: 0 additions & 88 deletions
This file was deleted.

src/sentry/incidents/endpoints/organization_incident_comment_index.py

Lines changed: 0 additions & 56 deletions
This file was deleted.

src/sentry/incidents/endpoints/organization_incident_seen.py

Lines changed: 0 additions & 53 deletions
This file was deleted.

src/sentry/incidents/endpoints/organization_incident_subscription_index.py

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)