From 6b257046c2108948b253bee85d540cc85d023925 Mon Sep 17 00:00:00 2001 From: nathan hsieh Date: Wed, 27 Sep 2023 14:52:09 -0700 Subject: [PATCH 1/3] move threshold api files into threshold folder --- src/sentry/api/endpoints/release_thresholds/__init__.py | 0 .../{ => release_thresholds}/release_threshold_details.py | 0 .../{ => release_thresholds}/release_threshold_status_index.py | 0 3 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 src/sentry/api/endpoints/release_thresholds/__init__.py rename src/sentry/api/endpoints/{ => release_thresholds}/release_threshold_details.py (100%) rename src/sentry/api/endpoints/{ => release_thresholds}/release_threshold_status_index.py (100%) diff --git a/src/sentry/api/endpoints/release_thresholds/__init__.py b/src/sentry/api/endpoints/release_thresholds/__init__.py new file mode 100644 index 00000000000000..e69de29bb2d1d6 diff --git a/src/sentry/api/endpoints/release_threshold_details.py b/src/sentry/api/endpoints/release_thresholds/release_threshold_details.py similarity index 100% rename from src/sentry/api/endpoints/release_threshold_details.py rename to src/sentry/api/endpoints/release_thresholds/release_threshold_details.py diff --git a/src/sentry/api/endpoints/release_threshold_status_index.py b/src/sentry/api/endpoints/release_thresholds/release_threshold_status_index.py similarity index 100% rename from src/sentry/api/endpoints/release_threshold_status_index.py rename to src/sentry/api/endpoints/release_thresholds/release_threshold_status_index.py From db1f89f47d8ce6f12eac49a992894f913317bfff Mon Sep 17 00:00:00 2001 From: nathan hsieh Date: Wed, 27 Sep 2023 14:54:21 -0700 Subject: [PATCH 2/3] move threshold tests into threshold folder --- tests/sentry/api/endpoints/release_thresholds/__init__.py | 0 .../endpoints/{ => release_thresholds}/test_release_threshold.py | 0 .../{ => release_thresholds}/test_release_threshold_details.py | 0 .../{ => release_thresholds}/test_release_threshold_status.py | 0 4 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 tests/sentry/api/endpoints/release_thresholds/__init__.py rename tests/sentry/api/endpoints/{ => release_thresholds}/test_release_threshold.py (100%) rename tests/sentry/api/endpoints/{ => release_thresholds}/test_release_threshold_details.py (100%) rename tests/sentry/api/endpoints/{ => release_thresholds}/test_release_threshold_status.py (100%) diff --git a/tests/sentry/api/endpoints/release_thresholds/__init__.py b/tests/sentry/api/endpoints/release_thresholds/__init__.py new file mode 100644 index 00000000000000..e69de29bb2d1d6 diff --git a/tests/sentry/api/endpoints/test_release_threshold.py b/tests/sentry/api/endpoints/release_thresholds/test_release_threshold.py similarity index 100% rename from tests/sentry/api/endpoints/test_release_threshold.py rename to tests/sentry/api/endpoints/release_thresholds/test_release_threshold.py diff --git a/tests/sentry/api/endpoints/test_release_threshold_details.py b/tests/sentry/api/endpoints/release_thresholds/test_release_threshold_details.py similarity index 100% rename from tests/sentry/api/endpoints/test_release_threshold_details.py rename to tests/sentry/api/endpoints/release_thresholds/test_release_threshold_details.py diff --git a/tests/sentry/api/endpoints/test_release_threshold_status.py b/tests/sentry/api/endpoints/release_thresholds/test_release_threshold_status.py similarity index 100% rename from tests/sentry/api/endpoints/test_release_threshold_status.py rename to tests/sentry/api/endpoints/release_thresholds/test_release_threshold_status.py From f237b7150fedaaf608b3f02420f0f3ac48cfc2ab Mon Sep 17 00:00:00 2001 From: nathan hsieh Date: Wed, 27 Sep 2023 14:56:44 -0700 Subject: [PATCH 3/3] missed one --- .../{ => release_thresholds}/release_threshold.py | 0 src/sentry/api/urls.py | 10 +++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) rename src/sentry/api/endpoints/{ => release_thresholds}/release_threshold.py (100%) diff --git a/src/sentry/api/endpoints/release_threshold.py b/src/sentry/api/endpoints/release_thresholds/release_threshold.py similarity index 100% rename from src/sentry/api/endpoints/release_threshold.py rename to src/sentry/api/endpoints/release_thresholds/release_threshold.py diff --git a/src/sentry/api/urls.py b/src/sentry/api/urls.py index 1109b73a36b3ad..2471efd6304d09 100644 --- a/src/sentry/api/urls.py +++ b/src/sentry/api/urls.py @@ -22,9 +22,13 @@ OrganizationProjectsExperimentEndpoint, ) from sentry.api.endpoints.organization_spans_aggregation import OrganizationSpansAggregationEndpoint -from sentry.api.endpoints.release_threshold import ReleaseThresholdEndpoint -from sentry.api.endpoints.release_threshold_details import ReleaseThresholdDetailsEndpoint -from sentry.api.endpoints.release_threshold_status_index import ReleaseThresholdStatusIndexEndpoint +from sentry.api.endpoints.release_thresholds.release_threshold import ReleaseThresholdEndpoint +from sentry.api.endpoints.release_thresholds.release_threshold_details import ( + ReleaseThresholdDetailsEndpoint, +) +from sentry.api.endpoints.release_thresholds.release_threshold_status_index import ( + ReleaseThresholdStatusIndexEndpoint, +) from sentry.api.endpoints.source_map_debug_blue_thunder_edition import ( SourceMapDebugBlueThunderEditionEndpoint, )