Browse Source

feat(profiling): remove profile id from transaction id endpoint (#74835)

related to https://github.com/getsentry/vroom/pull/491
Francesco Vigliaturo 7 months ago
parent
commit
af69868be5
2 changed files with 0 additions and 18 deletions
  1. 0 12
      src/sentry/api/endpoints/project_profiling_profile.py
  2. 0 6
      src/sentry/api/urls.py

+ 0 - 12
src/sentry/api/endpoints/project_profiling_profile.py

@@ -41,18 +41,6 @@ class ProjectProfilingBaseEndpoint(ProjectEndpoint):
         return params
 
 
-@region_silo_endpoint
-class ProjectProfilingTransactionIDProfileIDEndpoint(ProjectProfilingBaseEndpoint):
-    def get(self, request: Request, project: Project, transaction_id: str) -> HttpResponse:
-        if not features.has("organizations:profiling", project.organization, actor=request.user):
-            return Response(status=404)
-        kwargs: dict[str, Any] = {
-            "method": "GET",
-            "path": f"/organizations/{project.organization_id}/projects/{project.id}/transactions/{transaction_id}",
-        }
-        return proxy_profiling_service(**kwargs)
-
-
 @region_silo_endpoint
 class ProjectProfilingProfileEndpoint(ProjectProfilingBaseEndpoint):
     def get(self, request: Request, project: Project, profile_id: str) -> HttpResponse:

+ 0 - 6
src/sentry/api/urls.py

@@ -570,7 +570,6 @@ from .endpoints.project_profiling_profile import (
     ProjectProfilingEventEndpoint,
     ProjectProfilingProfileEndpoint,
     ProjectProfilingRawProfileEndpoint,
-    ProjectProfilingTransactionIDProfileIDEndpoint,
 )
 from .endpoints.project_release_commits import ProjectReleaseCommitsEndpoint
 from .endpoints.project_release_details import ProjectReleaseDetailsEndpoint
@@ -2755,11 +2754,6 @@ PROJECT_URLS: list[URLPattern | URLResolver] = [
         ProjectProfilingRawProfileEndpoint.as_view(),
         name="sentry-api-0-project-profiling-raw-profile",
     ),
-    re_path(
-        r"^(?P<organization_id_or_slug>[^\/]+)/(?P<project_id_or_slug>[^\/]+)/profiling/transactions/(?P<transaction_id>(?:\d+|[A-Fa-f0-9-]{32,36}))/$",
-        ProjectProfilingTransactionIDProfileIDEndpoint.as_view(),
-        name="sentry-api-0-project-profiling-transactions",
-    ),
     re_path(
         r"^(?P<organization_id_or_slug>[^\/]+)/(?P<project_id_or_slug>[^\/]+)/statistical-detector/$",
         ProjectStatisticalDetectors.as_view(),