Skip to content

Commit dc7f19f

Browse files
authored
ref: remove LPQ backend code (#96069)
Removes remaining backend code that was used for LPQ notification. LPQ was removed some time ago and this code is no longer needed. Frontend changes have been done in a different PR: #94952
1 parent f46f9f7 commit dc7f19f

File tree

3 files changed

+0
-21
lines changed

3 files changed

+0
-21
lines changed

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

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -644,10 +644,6 @@ def serialize(
644644
return {**base, **extra, "teams": attrs["teams"]}
645645

646646

647-
class EventProcessingDict(TypedDict):
648-
symbolicationDegraded: bool
649-
650-
651647
class LatestReleaseDict(TypedDict):
652648
version: str
653649

@@ -662,7 +658,6 @@ class OrganizationProjectResponse(
662658
):
663659
team: TeamResponseDict | None
664660
teams: list[TeamResponseDict]
665-
eventProcessing: EventProcessingDict
666661
platforms: list[str]
667662
hasUserReports: bool
668663
environments: list[str]
@@ -751,11 +746,6 @@ def get_attrs(
751746
attrs[item]["has_user_reports"] = item.id in projects_with_user_reports
752747
if not self._collapse(LATEST_DEPLOYS_KEY):
753748
attrs[item]["deploys"] = deploys_by_project.get(item.id)
754-
# TODO: remove this attribute and evenrything connected with it
755-
# check if the project is in LPQ for any platform
756-
# XXX(joshferge): determine if the frontend needs this flag at all
757-
# removing redis call as was causing problematic latency issues
758-
attrs[item]["symbolication_degraded"] = False
759749

760750
return attrs
761751

@@ -778,9 +768,6 @@ def serialize( # type: ignore[override] # intentionally different data shape
778768
hasAccess=attrs["has_access"],
779769
dateCreated=obj.date_added,
780770
environments=attrs["environments"],
781-
eventProcessing={
782-
"symbolicationDegraded": attrs["symbolication_degraded"],
783-
},
784771
features=attrs["features"],
785772
firstEvent=obj.first_event,
786773
firstTransactionEvent=bool(obj.flags.has_transactions),
@@ -951,7 +938,6 @@ class DetailedProjectResponse(ProjectWithTeamResponseDict):
951938
relayPiiConfig: str | None
952939
builtinSymbolSources: list[str]
953940
dynamicSamplingBiases: list[dict[str, str | bool]]
954-
eventProcessing: dict[str, bool]
955941
symbolSources: str
956942
isDynamicallySampled: bool
957943
tempestFetchScreenshots: NotRequired[bool]
@@ -1098,9 +1084,6 @@ def serialize(
10981084
"dynamicSamplingBiases": self.get_value_with_default(
10991085
attrs, "sentry:dynamic_sampling_biases"
11001086
),
1101-
"eventProcessing": {
1102-
"symbolicationDegraded": False,
1103-
},
11041087
"symbolSources": serialized_sources,
11051088
"isDynamicallySampled": sample_rate is not None and sample_rate < 1.0,
11061089
"autofixAutomationTuning": self.get_value_with_default(

src/sentry/apidocs/examples/organization_examples.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,6 @@ class OrganizationExamples:
367367
"hasAccess": True,
368368
"dateCreated": "2019-06-17T18:56:25.777769Z",
369369
"environments": [],
370-
"eventProcessing": {"symbolicationDegraded": False},
371370
"features": ["releases"],
372371
"firstEvent": None,
373372
"firstTransactionEvent": False,
@@ -432,7 +431,6 @@ class OrganizationExamples:
432431
}
433432
],
434433
"environments": ["local"],
435-
"eventProcessing": {"symbolicationDegraded": False},
436434
"features": ["releases"],
437435
"firstTransactionEvent": True,
438436
"hasSessions": True,

src/sentry/apidocs/examples/project_examples.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,6 @@
257257
{"id": "boostReplayId", "active": True},
258258
{"id": "recalibrationRule", "active": True},
259259
],
260-
"eventProcessing": {"symbolicationDegraded": False},
261260
"symbolSources": "[]",
262261
"tempestFetchScreenshots": False,
263262
"tempestFetchDumps": False,
@@ -305,7 +304,6 @@
305304
"hasAccess": True,
306305
"dateCreated": "2023-03-29T15:25:21.344565Z",
307306
"environments": ["production"],
308-
"eventProcessing": {"symbolicationDegraded": False},
309307
"features": [
310308
"alert-filters",
311309
"custom-inbound-filters",

0 commit comments

Comments
 (0)