Skip to content

Commit f0346ed

Browse files
JoshuaMoelansandrewshie-sentry
authored andcommitted
fix: add os.distribution_X FieldKey values to autofill search (#81656)
<!-- Describe your PR here. --> As part of the following [sentry-native PR](getsentry/sentry-native#963) we want to be able to search on these recently added fields by having them autofill. Originally added (unflattened) in #69865 Flattened them for searchability in #81297
1 parent 2d1494a commit f0346ed

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

static/app/utils/fields/index.ts

+18
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ export enum FieldKey {
8181
OS_BUILD = 'os.build',
8282
OS_KERNEL_VERSION = 'os.kernel_version',
8383
OS_NAME = 'os.name',
84+
OS_DISTRIBUTION_NAME = 'os.distribution_name',
85+
OS_DISTRIBUTION_VERSION = 'os.distribution_version',
8486
PLATFORM = 'platform',
8587
PLATFORM_NAME = 'platform.name',
8688
PROFILE_ID = 'profile.id',
@@ -1523,6 +1525,16 @@ const EVENT_FIELD_DEFINITIONS: Record<AllEventFieldKeys, FieldDefinition> = {
15231525
kind: FieldKind.FIELD,
15241526
valueType: FieldValueType.STRING,
15251527
},
1528+
[FieldKey.OS_DISTRIBUTION_NAME]: {
1529+
desc: t('Distribution name'),
1530+
kind: FieldKind.FIELD,
1531+
valueType: FieldValueType.STRING,
1532+
},
1533+
[FieldKey.OS_DISTRIBUTION_VERSION]: {
1534+
desc: t('Distribution version number'),
1535+
kind: FieldKind.FIELD,
1536+
valueType: FieldValueType.STRING,
1537+
},
15261538
[FieldKey.PLATFORM]: {
15271539
desc: t('Name of the platform'),
15281540
kind: FieldKind.FIELD,
@@ -1837,6 +1849,8 @@ export const ISSUE_EVENT_PROPERTY_FIELDS: FieldKey[] = [
18371849
FieldKey.MESSAGE,
18381850
FieldKey.OS_BUILD,
18391851
FieldKey.OS_KERNEL_VERSION,
1852+
FieldKey.OS_DISTRIBUTION_NAME,
1853+
FieldKey.OS_DISTRIBUTION_VERSION,
18401854
FieldKey.PLATFORM_NAME,
18411855
FieldKey.RELEASE_BUILD,
18421856
FieldKey.RELEASE_PACKAGE,
@@ -1905,6 +1919,8 @@ export const ISSUE_EVENT_FIELDS_THAT_MAY_CONFLICT_WITH_TAGS: Set<FieldKey> = new
19051919
FieldKey.MESSAGE,
19061920
FieldKey.OS_BUILD,
19071921
FieldKey.OS_KERNEL_VERSION,
1922+
FieldKey.OS_DISTRIBUTION_NAME,
1923+
FieldKey.OS_DISTRIBUTION_VERSION,
19081924
FieldKey.PLATFORM_NAME,
19091925
FieldKey.RELEASE_BUILD,
19101926
FieldKey.RELEASE_PACKAGE,
@@ -1967,6 +1983,8 @@ export const DISCOVER_FIELDS = [
19671983
FieldKey.HTTP_URL,
19681984
FieldKey.OS_BUILD,
19691985
FieldKey.OS_KERNEL_VERSION,
1986+
FieldKey.OS_DISTRIBUTION_NAME,
1987+
FieldKey.OS_DISTRIBUTION_VERSION,
19701988
FieldKey.DEVICE_NAME,
19711989
FieldKey.DEVICE_BRAND,
19721990
FieldKey.DEVICE_LOCALE,

0 commit comments

Comments
 (0)