Skip to content

Commit

Permalink
feat(replay): add viewed_by_ids to replay search fields (#69364)
Browse files Browse the repository at this point in the history
Follow up from #64924

Before/after:

![Before](https://github.com/getsentry/sentry/assets/159852527/1bea0567-0954-474f-a2cf-2ad5b8e152fb)

<img width="683" alt="Screenshot 2024-04-19 at 3 32 34 PM"
src="https://github.com/getsentry/sentry/assets/159852527/4a2d2ad7-2d0c-4c3b-9dde-31ecf32487dc">

Followed up with docs PR for searchable properties

---------

Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
Co-authored-by: Michelle Zhang <[email protected]>
  • Loading branch information
3 people authored and MichaelSun48 committed Apr 25, 2024
1 parent 9062648 commit c6e72ff
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion static/app/utils/fields/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,9 @@ export enum ReplayFieldKey {
ERROR_IDS = 'error_ids',
OS_NAME = 'os.name',
OS_VERSION = 'os.version',
SEEN_BY_ID = 'seen_by_id',
URLS = 'urls',
VIEWED_BY_ID = 'viewed_by_id',
}

export enum ReplayClickFieldKey {
Expand Down Expand Up @@ -1288,12 +1290,14 @@ export const REPLAY_FIELDS = [
FieldKey.RELEASE,
FieldKey.SDK_NAME,
FieldKey.SDK_VERSION,
ReplayFieldKey.SEEN_BY_ID,
FieldKey.TRACE,
ReplayFieldKey.URLS,
FieldKey.USER_EMAIL,
FieldKey.USER_ID,
FieldKey.USER_IP,
FieldKey.USER_USERNAME,
ReplayFieldKey.VIEWED_BY_ID,
];

const REPLAY_FIELD_DEFINITIONS: Record<ReplayFieldKey, FieldDefinition> = {
Expand Down Expand Up @@ -1357,11 +1361,21 @@ const REPLAY_FIELD_DEFINITIONS: Record<ReplayFieldKey, FieldDefinition> = {
kind: FieldKind.FIELD,
valueType: FieldValueType.STRING,
},
[ReplayFieldKey.SEEN_BY_ID]: {
desc: t('Sentry user ID(s) who have seen this replay'),
kind: FieldKind.FIELD,
valueType: FieldValueType.INTEGER,
},
[ReplayFieldKey.URLS]: {
desc: t('List of urls that were visited within the Replay'),
desc: t('List of urls that were visited within the replay'),
kind: FieldKind.FIELD,
valueType: FieldValueType.STRING,
},
[ReplayFieldKey.VIEWED_BY_ID]: {
desc: t('Sentry user ID(s) who have seen this replay'),
kind: FieldKind.FIELD,
valueType: FieldValueType.INTEGER,
},
};

export const REPLAY_CLICK_FIELDS = [
Expand Down

0 comments on commit c6e72ff

Please sign in to comment.