|
26 | 26 | from sentry.models.event import EventDict |
27 | 27 | from sentry.snuba.events import Columns |
28 | 28 | from sentry.spans.grouping.api import load_span_grouping_config |
29 | | -from sentry.utils.canonical import CanonicalKeyView |
30 | 29 | from sentry.utils.safe import get_path, trim |
31 | 30 | from sentry.utils.strings import truncatechars |
32 | 31 |
|
@@ -70,9 +69,7 @@ def __init__( |
70 | 69 | def __getstate__(self) -> Mapping[str, Any]: |
71 | 70 | state = self.__dict__.copy() |
72 | 71 | # do not pickle cached info. We want to fetch this on demand |
73 | | - # again. In particular if we were to pickle interfaces we would |
74 | | - # pickle a CanonicalKeyView which old sentry workers do not know |
75 | | - # about |
| 72 | + # again. |
76 | 73 | state.pop("_project_cache", None) |
77 | 74 | state.pop("_environment_cache", None) |
78 | 75 | state.pop("_group_cache", None) |
@@ -304,12 +301,9 @@ def project(self, project: Project) -> None: |
304 | 301 | self.project_id = project.id |
305 | 302 | self._project_cache = project |
306 | 303 |
|
307 | | - def get_interfaces(self) -> Mapping[str, Interface]: |
308 | | - return CanonicalKeyView(get_interfaces(self.data)) |
309 | | - |
310 | 304 | @cached_property |
311 | 305 | def interfaces(self) -> Mapping[str, Interface]: |
312 | | - return self.get_interfaces() |
| 306 | + return get_interfaces(self.data) |
313 | 307 |
|
314 | 308 | def get_interface(self, name: str) -> Interface | None: |
315 | 309 | return self.interfaces.get(name) |
|
0 commit comments