|
@@ -37,7 +37,6 @@ import {
|
|
|
SavedSearch,
|
|
|
TagCollection,
|
|
|
} from 'sentry/types';
|
|
|
-import {ExperimentAssignment} from 'sentry/types/experiments';
|
|
|
import {defined} from 'sentry/utils';
|
|
|
import {trackAnalytics} from 'sentry/utils/analytics';
|
|
|
import CursorPoller from 'sentry/utils/cursorPoller';
|
|
@@ -46,18 +45,12 @@ import getCurrentSentryReactTransaction from 'sentry/utils/getCurrentSentryReact
|
|
|
import parseApiError from 'sentry/utils/parseApiError';
|
|
|
import parseLinkHeader from 'sentry/utils/parseLinkHeader';
|
|
|
import {VisuallyCompleteWithData} from 'sentry/utils/performanceForSentry';
|
|
|
-import {
|
|
|
- enablePrioritySortByDefault,
|
|
|
- getPrioritySortVariant,
|
|
|
- prioritySortExperimentEnabled,
|
|
|
-} from 'sentry/utils/prioritySort';
|
|
|
import {decodeScalar} from 'sentry/utils/queryString';
|
|
|
import withRouteAnalytics, {
|
|
|
WithRouteAnalyticsProps,
|
|
|
} from 'sentry/utils/routeAnalytics/withRouteAnalytics';
|
|
|
import withApi from 'sentry/utils/withApi';
|
|
|
import {normalizeUrl} from 'sentry/utils/withDomainRequired';
|
|
|
-import withExperiment from 'sentry/utils/withExperiment';
|
|
|
import withIssueTags from 'sentry/utils/withIssueTags';
|
|
|
import withOrganization from 'sentry/utils/withOrganization';
|
|
|
import withPageFilters from 'sentry/utils/withPageFilters';
|
|
@@ -92,9 +85,7 @@ type Params = {
|
|
|
|
|
|
type Props = {
|
|
|
api: Client;
|
|
|
- experimentAssignment: ExperimentAssignment['PrioritySortExperiment'];
|
|
|
location: Location;
|
|
|
- logExperiment: () => void;
|
|
|
organization: Organization;
|
|
|
params: Params;
|
|
|
savedSearch: SavedSearch;
|
|
@@ -158,7 +149,6 @@ type BetterPriorityEndpointParams = Partial<EndpointParams> & {
|
|
|
norm?: boolean;
|
|
|
relativeVolume?: number;
|
|
|
v2?: boolean;
|
|
|
- variant?: string;
|
|
|
};
|
|
|
|
|
|
class IssueListOverview extends Component<Props, State> {
|
|
@@ -205,7 +195,6 @@ class IssueListOverview extends Component<Props, State> {
|
|
|
this.fetchMemberList();
|
|
|
// let custom analytics take control
|
|
|
this.props.setDisableRouteAnalytics?.();
|
|
|
- this.logExperiment();
|
|
|
}
|
|
|
|
|
|
componentDidUpdate(prevProps: Props, prevState: State) {
|
|
@@ -286,12 +275,6 @@ class IssueListOverview extends Component<Props, State> {
|
|
|
private _lastStatsRequest: any;
|
|
|
private _lastFetchCountsRequest: any;
|
|
|
|
|
|
- logExperiment() {
|
|
|
- if (prioritySortExperimentEnabled(this.props.organization)) {
|
|
|
- this.props.logExperiment();
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
getQueryFromSavedSearchOrLocation({
|
|
|
savedSearch,
|
|
|
location,
|
|
@@ -321,7 +304,9 @@ class IssueListOverview extends Component<Props, State> {
|
|
|
return location.query.sort as string;
|
|
|
}
|
|
|
|
|
|
- const hasBetterPrioritySort = enablePrioritySortByDefault(this.props.organization);
|
|
|
+ const hasBetterPrioritySort = this.props.organization.features.includes(
|
|
|
+ 'issue-list-better-priority-sort'
|
|
|
+ );
|
|
|
return hasBetterPrioritySort
|
|
|
? IssueSortOptions.BETTER_PRIORITY
|
|
|
: DEFAULT_ISSUE_STREAM_SORT;
|
|
@@ -355,7 +340,6 @@ class IssueListOverview extends Component<Props, State> {
|
|
|
}
|
|
|
|
|
|
getBetterPriorityParams(): BetterPriorityEndpointParams {
|
|
|
- const variant = getPrioritySortVariant(this.props.organization);
|
|
|
const query = this.props.location.query ?? {};
|
|
|
const {
|
|
|
eventHalflifeHours,
|
|
@@ -375,7 +359,6 @@ class IssueListOverview extends Component<Props, State> {
|
|
|
norm,
|
|
|
v2,
|
|
|
relativeVolume,
|
|
|
- variant,
|
|
|
};
|
|
|
}
|
|
|
|
|
@@ -1290,18 +1273,7 @@ class IssueListOverview extends Component<Props, State> {
|
|
|
export default withRouteAnalytics(
|
|
|
withApi(
|
|
|
withPageFilters(
|
|
|
- withSavedSearches(
|
|
|
- withOrganization(
|
|
|
- withIssueTags(
|
|
|
- withProfiler(
|
|
|
- withExperiment(IssueListOverview, {
|
|
|
- experiment: 'PrioritySortExperiment',
|
|
|
- injectLogExperiment: true,
|
|
|
- })
|
|
|
- )
|
|
|
- )
|
|
|
- )
|
|
|
- )
|
|
|
+ withSavedSearches(withOrganization(withIssueTags(withProfiler(IssueListOverview))))
|
|
|
)
|
|
|
)
|
|
|
);
|