Skip to content

Commit dc367b8

Browse files
task(preprod): Remove secondary/unneeded FF
1 parent d65c885 commit dc367b8

File tree

6 files changed

+5
-8
lines changed

6 files changed

+5
-8
lines changed

src/sentry/features/temporary.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,6 @@ def register_temporary_features(manager: FeatureManager) -> None:
293293
manager.add("organizations:performance-transaction-deprecation-alerts", OrganizationFeature, FeatureHandlerStrategy.FLAGPOLE, api_expose=True)
294294
# Enable the warning banner to inform users of pending deprecation of the transactions dataset
295295
manager.add("organizations:performance-transaction-deprecation-banner", OrganizationFeature, FeatureHandlerStrategy.FLAGPOLE, api_expose=True)
296-
# Enable preprod artifact assembly endpointAdd commentMore actions
297-
manager.add("organizations:preprod-artifact-assemble", OrganizationFeature, FeatureHandlerStrategy.FLAGPOLE, api_expose=True)
298296
# Enable preprod frontend routes
299297
manager.add("organizations:preprod-frontend-routes", OrganizationFeature, FeatureHandlerStrategy.FLAGPOLE, api_expose=True)
300298
# Enables PR page

src/sentry/preprod/api/endpoints/organization_preprod_artifact_assemble.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def post(self, request: Request, project: Project) -> Response:
117117
)
118118

119119
if not settings.IS_DEV and not features.has(
120-
"organizations:preprod-artifact-assemble", project.organization, actor=request.user
120+
"organizations:preprod-frontend-routes", project.organization, actor=request.user
121121
):
122122
return Response({"error": "Feature not enabled"}, status=403)
123123

src/sentry/preprod/api/endpoints/size_analysis/project_preprod_size_analysis_download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def get(
6262
)
6363

6464
if not settings.IS_DEV and not features.has(
65-
"organizations:preprod-artifact-assemble", project.organization, actor=request.user
65+
"organizations:preprod-frontend-routes", project.organization, actor=request.user
6666
):
6767
return Response({"error": "Feature not enabled"}, status=403)
6868

tests/sentry/preprod/api/endpoints/size_analysis/test_project_preprod_size_analysis_download.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
@override_settings(
1010
SENTRY_FEATURES={
1111
"organizations:preprod-frontend-routes": True,
12-
"organizations:preprod-artifact-assemble": True,
1312
}
1413
)
1514
class ProjectPreprodArtifactSizeAnalysisDownloadEndpointTest(APITestCase):

tests/sentry/preprod/api/endpoints/test_organization_preprod_artifact_assemble.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def setUp(self) -> None:
185185
args=[self.organization.slug, self.project.slug],
186186
)
187187

188-
self.feature_context = Feature("organizations:preprod-artifact-assemble")
188+
self.feature_context = Feature("organizations:preprod-frontend-routes")
189189
self.feature_context.__enter__()
190190

191191
def tearDown(self) -> None:
@@ -210,7 +210,7 @@ def test_feature_flag_disabled_returns_403(self) -> None:
210210
)
211211
assert response.status_code == 403
212212
finally:
213-
self.feature_context = Feature("organizations:preprod-artifact-assemble")
213+
self.feature_context = Feature("organizations:preprod-frontend-routes")
214214
self.feature_context.__enter__()
215215

216216
def test_assemble_json_schema_integration(self) -> None:

tests/sentry/preprod/api/endpoints/test_project_preprod_artifact_download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def test_download_preprod_artifact_no_file(self) -> None:
7171

7272
headers = self._get_authenticated_request_headers(url)
7373

74-
with self.feature("organizations:preprod-artifact-assemble"):
74+
with self.feature("organizations:preprod-frontend-routes"):
7575
response = self.client.get(url, **headers)
7676

7777
assert response.status_code == 404

0 commit comments

Comments
 (0)