Skip to content

Commit beea39d

Browse files
committed
Cleanup tempest_fetch_dumps
1 parent 21e4115 commit beea39d

File tree

7 files changed

+0
-58
lines changed

7 files changed

+0
-58
lines changed

src/sentry/api/serializers/models/project.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,6 @@ class DetailedProjectResponse(ProjectWithTeamResponseDict):
963963
symbolSources: str
964964
isDynamicallySampled: bool
965965
tempestFetchScreenshots: NotRequired[bool]
966-
tempestFetchDumps: NotRequired[bool]
967966
autofixAutomationTuning: NotRequired[str]
968967
seerScannerAutomation: NotRequired[bool]
969968
debugFilesRole: NotRequired[str | None]
@@ -1122,7 +1121,6 @@ def serialize(
11221121
data["tempestFetchScreenshots"] = attrs["options"].get(
11231122
"sentry:tempest_fetch_screenshots", False
11241123
)
1125-
data["tempestFetchDumps"] = attrs["options"].get("sentry:tempest_fetch_dumps", False)
11261124

11271125
return data
11281126

src/sentry/apidocs/examples/project_examples.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@
264264
],
265265
"symbolSources": "[]",
266266
"tempestFetchScreenshots": False,
267-
"tempestFetchDumps": False,
268267
"debugFilesRole": None,
269268
"isDynamicallySampled": True,
270269
"autofixAutomationTuning": "off",

src/sentry/core/endpoints/project_details.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ class ProjectMemberSerializer(serializers.Serializer):
135135
"targetSampleRate",
136136
"dynamicSamplingBiases",
137137
"tempestFetchScreenshots",
138-
"tempestFetchDumps",
139138
"autofixAutomationTuning",
140139
"seerScannerAutomation",
141140
"debugFilesRole",
@@ -229,7 +228,6 @@ class ProjectAdminSerializer(ProjectMemberSerializer):
229228
targetSampleRate = serializers.FloatField(required=False, min_value=0, max_value=1)
230229
dynamicSamplingBiases = DynamicSamplingBiasSerializer(required=False, many=True)
231230
tempestFetchScreenshots = serializers.BooleanField(required=False)
232-
tempestFetchDumps = serializers.BooleanField(required=False)
233231

234232
# DO NOT ADD MORE TO OPTIONS
235233
# Each param should be a field in the serializer like above.
@@ -446,14 +444,6 @@ def validate_tempestFetchScreenshots(self, value):
446444
)
447445
return value
448446

449-
def validate_tempestFetchDumps(self, value):
450-
organization = self.context["project"].organization
451-
if not has_tempest_access(organization):
452-
raise serializers.ValidationError(
453-
"Organization does not have the tempest feature enabled."
454-
)
455-
return value
456-
457447
def validate_debugFilesRole(self, value):
458448
if value is None:
459449
return value
@@ -738,9 +728,6 @@ def put(self, request: Request, project) -> Response:
738728
changed_proj_settings["sentry:tempest_fetch_screenshots"] = result[
739729
"tempestFetchScreenshots"
740730
]
741-
if result.get("tempestFetchDumps") is not None:
742-
if project.update_option("sentry:tempest_fetch_dumps", result["tempestFetchDumps"]):
743-
changed_proj_settings["sentry:tempest_fetch_dumps"] = result["tempestFetchDumps"]
744731
if result.get("targetSampleRate") is not None:
745732
if project.update_option(
746733
"sentry:target_sample_rate", round(result["targetSampleRate"], 4)

src/sentry/models/options/project_option.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
"sentry:dynamic_sampling_biases",
6363
"sentry:target_sample_rate",
6464
"sentry:tempest_fetch_screenshots",
65-
"sentry:tempest_fetch_dumps",
6665
"sentry:breakdowns",
6766
"sentry:transaction_name_cluster_rules",
6867
"sentry:uptime_autodetection",

src/sentry/projectoptions/defaults.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,6 @@
176176
# Should tempest fetch screenshots for this project
177177
register(key="sentry:tempest_fetch_screenshots", default=False)
178178

179-
# Should tempest fetch dumps for this project
180-
register(key="sentry:tempest_fetch_dumps", default=False)
181-
182179
# Should autofix run automatically on new issues
183180
register(key="sentry:autofix_automation_tuning", default=AutofixAutomationTuningSettings.OFF)
184181

tests/sentry/core/endpoints/test_project_details.py

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2147,34 +2147,6 @@ def test_get_tempest_fetch_screenshots_options_without_feature_flag(self) -> Non
21472147
)
21482148
assert "tempestFetchScreenshots" not in response.data
21492149

2150-
def test_put_tempest_fetch_dumps(self) -> None:
2151-
self.organization.update_option("sentry:enabled_console_platforms", ["playstation"])
2152-
assert self.project.get_option("sentry:tempest_fetch_dumps") is False
2153-
response = self.get_success_response(
2154-
self.organization.slug, self.project.slug, method="put", tempestFetchDumps=True
2155-
)
2156-
assert response.data["tempestFetchDumps"] is True
2157-
assert self.project.get_option("sentry:tempest_fetch_dumps") is True
2158-
2159-
def test_put_tempest_fetch_dumps_without_feature_flag(self) -> None:
2160-
self.get_error_response(
2161-
self.organization.slug, self.project.slug, method="put", tempestFetchDumps=True
2162-
)
2163-
2164-
def test_get_tempest_fetch_dumps_options(self) -> None:
2165-
self.organization.update_option("sentry:enabled_console_platforms", ["playstation"])
2166-
response = self.get_success_response(
2167-
self.organization.slug, self.project.slug, method="get"
2168-
)
2169-
assert "tempestFetchDumps" in response.data
2170-
assert response.data["tempestFetchDumps"] is False
2171-
2172-
def test_get_tempest_fetch_dumps_options_without_enabled_playstation_in_options(self) -> None:
2173-
response = self.get_success_response(
2174-
self.organization.slug, self.project.slug, method="get"
2175-
)
2176-
assert "tempestFetchDumps" not in response.data
2177-
21782150

21792151
class TestSeerProjectDetails(TestProjectDetailsBase):
21802152
endpoint = "sentry-api-0-project-details"

tests/sentry/tempest/test_tempest.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -211,16 +211,6 @@ def test_tempest_screenshot_option(self) -> None:
211211
self.project.update_option("sentry:tempest_fetch_screenshots", False)
212212
assert self.project.get_option("sentry:tempest_fetch_screenshots") is False
213213

214-
def test_tempest_dump_option(self) -> None:
215-
# Default should be False
216-
assert self.project.get_option("sentry:tempest_fetch_dumps") is False
217-
218-
self.project.update_option("sentry:tempest_fetch_dumps", True)
219-
assert self.project.get_option("sentry:tempest_fetch_dumps") is True
220-
221-
self.project.update_option("sentry:tempest_fetch_dumps", False)
222-
assert self.project.get_option("sentry:tempest_fetch_dumps") is False
223-
224214
@patch("sentry.tempest.tasks.schedule_invalidate_project_config")
225215
@patch("sentry.tempest.tasks.fetch_items_from_tempest")
226216
def test_poll_tempest_crashes_invalidates_config(

0 commit comments

Comments
 (0)