Skip to content

Commit 7abfaf6

Browse files
authored
chore(metrics): Remove custom array lookup (#77234)
Removes custom array lookup created for custom lookups related to span attribute metrics. This is no longer used anywhere and there is no need to keep it in a codebase. Signed-off-by: Vjeran Grozdanic <[email protected]>
1 parent 2463ab8 commit 7abfaf6

File tree

5 files changed

+0
-84
lines changed

5 files changed

+0
-84
lines changed

src/sentry/db/models/fields/array.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
import ast
44

5-
from django.contrib.postgres.fields import ArrayField as DjangoArrayField
65
from django.db import models
76

87
from sentry.db.models.utils import Creator
9-
from sentry.db.postgres.lookups.array_element_contains import ArrayElementContainsLookup
108
from sentry.utils import json
119

1210

@@ -71,6 +69,3 @@ def to_python(self, value):
7169
assert "\\" not in value, "Unexpected ArrayField format"
7270
value = value[1:-1].split(",")
7371
return [self.of.to_python(x) for x in value]
74-
75-
76-
DjangoArrayField.register_lookup(ArrayElementContainsLookup)

src/sentry/db/postgres/lookups/__init__.py

Whitespace-only changes.

src/sentry/db/postgres/lookups/array_element_contains.py

Lines changed: 0 additions & 28 deletions
This file was deleted.

tests/sentry/db/postgres/lookups/__init__.py

Whitespace-only changes.

tests/sentry/db/postgres/lookups/test_array_element_contains.py

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)