|
@@ -2,6 +2,7 @@ import * as Sentry from '@sentry/react';
|
|
|
import type {Location} from 'history';
|
|
|
|
|
|
import type {Client} from 'sentry/api';
|
|
|
+import {ALL_ACCESS_PROJECTS} from 'sentry/constants/pageFilters';
|
|
|
import type {Organization} from 'sentry/types';
|
|
|
import type EventView from 'sentry/utils/discover/eventView';
|
|
|
import {mapResponseToReplayRecord} from 'sentry/utils/replays/replayDataUtils';
|
|
@@ -50,7 +51,10 @@ async function fetchReplayList({
|
|
|
query: {
|
|
|
...payload,
|
|
|
cursor: location.query.cursor,
|
|
|
+ // when queryReferrer === 'issueReplays' we override the global view check on the backend
|
|
|
+ // we also require a project param otherwise we won't yield results
|
|
|
queryReferrer,
|
|
|
+ project: queryReferrer === 'issueReplays' ? ALL_ACCESS_PROJECTS : payload.project,
|
|
|
},
|
|
|
});
|
|
|
|