File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -2572,6 +2572,12 @@ export const REPLAY_FIELDS = [
2572
2572
FieldKey . OTA_UPDATES_UPDATE_ID ,
2573
2573
] ;
2574
2574
2575
+ export const REPLAY_TAG_ALIASES = {
2576
+ [ ReplayFieldKey . SCREEN ] : ReplayFieldKey . URL ,
2577
+ [ ReplayFieldKey . SCREENS ] : ReplayFieldKey . URL ,
2578
+ [ ReplayFieldKey . URLS ] : ReplayFieldKey . URL ,
2579
+ } ;
2580
+
2575
2581
const REPLAY_FIELD_DEFINITIONS : Record < ReplayFieldKey , FieldDefinition > = {
2576
2582
[ ReplayFieldKey . ACTIVITY ] : {
2577
2583
desc : t ( 'Amount of activity in the replay from 0 to 10' ) ,
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import {
18
18
getFieldDefinition ,
19
19
REPLAY_CLICK_FIELDS ,
20
20
REPLAY_FIELDS ,
21
+ REPLAY_TAG_ALIASES ,
21
22
} from 'sentry/utils/fields' ;
22
23
import { MutableSearch } from 'sentry/utils/tokenizeSearch' ;
23
24
import useApi from 'sentry/utils/useApi' ;
@@ -159,10 +160,15 @@ function ReplaySearchBar(props: Props) {
159
160
statsPeriod,
160
161
} ;
161
162
163
+ const searchName =
164
+ tag . key in REPLAY_TAG_ALIASES
165
+ ? REPLAY_TAG_ALIASES [ tag . key as keyof typeof REPLAY_TAG_ALIASES ]
166
+ : tag . key ;
167
+
162
168
return fetchTagValues ( {
163
169
api,
164
170
orgSlug : organization . slug ,
165
- tagKey : tag . key ,
171
+ tagKey : searchName ,
166
172
search : searchQuery ,
167
173
projectIds : projectIds ?. map ( String ) ,
168
174
endpointParams,
You can’t perform that action at this time.
0 commit comments