Skip to content

Commit 31a7c1c

Browse files
authored
feat(geo): Add subdivision field to search (#47871)
expose subdivision field in the search. should be merged after: - [x] getsentry/relay#2058 - [x] getsentry/snuba#4080 - [x] #47995
1 parent 8b6bb09 commit 31a7c1c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

static/app/utils/fields/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export enum FieldKey {
5656
GEO_CITY = 'geo.city',
5757
GEO_COUNTRY_CODE = 'geo.country_code',
5858
GEO_REGION = 'geo.region',
59+
GEO_SUBDIVISION = 'geo.subdivision',
5960
HAS = 'has',
6061
HTTP_METHOD = 'http.method',
6162
HTTP_REFERER = 'http.referer',
@@ -656,6 +657,11 @@ const EVENT_FIELD_DEFINITIONS: Record<AllEventFieldKeys, FieldDefinition> = {
656657
kind: FieldKind.FIELD,
657658
valueType: FieldValueType.STRING,
658659
},
660+
[FieldKey.GEO_SUBDIVISION]: {
661+
desc: t('Full name of the subdivision'),
662+
kind: FieldKind.FIELD,
663+
valueType: FieldValueType.STRING,
664+
},
659665
[FieldKey.HTTP_METHOD]: {
660666
desc: t('Method of the request that created the event'),
661667
kind: FieldKind.FIELD,
@@ -998,6 +1004,7 @@ export const ISSUE_FIELDS = [
9981004
FieldKey.GEO_CITY,
9991005
FieldKey.GEO_COUNTRY_CODE,
10001006
FieldKey.GEO_REGION,
1007+
FieldKey.GEO_SUBDIVISION,
10011008
FieldKey.HAS,
10021009
FieldKey.HTTP_METHOD,
10031010
FieldKey.HTTP_REFERER,
@@ -1098,6 +1105,7 @@ export const DISCOVER_FIELDS = [
10981105
FieldKey.GEO_COUNTRY_CODE,
10991106
FieldKey.GEO_REGION,
11001107
FieldKey.GEO_CITY,
1108+
FieldKey.GEO_SUBDIVISION,
11011109
FieldKey.ERROR_TYPE,
11021110
FieldKey.ERROR_VALUE,
11031111
FieldKey.ERROR_MECHANISM,

0 commit comments

Comments
 (0)