|
@@ -143,16 +143,6 @@ type StatEndpointParams = Omit<EndpointParams, 'cursor' | 'page'> & {
|
|
|
expand?: string | string[];
|
|
|
};
|
|
|
|
|
|
-type BetterPriorityEndpointParams = Partial<EndpointParams> & {
|
|
|
- eventHalflifeHours?: number;
|
|
|
- hasStacktrace?: number;
|
|
|
- issueHalflifeHours?: number;
|
|
|
- logLevel?: number;
|
|
|
- norm?: boolean;
|
|
|
- relativeVolume?: number;
|
|
|
- v2?: boolean;
|
|
|
-};
|
|
|
-
|
|
|
class IssueListOverview extends Component<Props, State> {
|
|
|
state: State = this.getInitialState();
|
|
|
|
|
@@ -335,29 +325,6 @@ class IssueListOverview extends Component<Props, State> {
|
|
|
: DEFAULT_GRAPH_STATS_PERIOD;
|
|
|
}
|
|
|
|
|
|
- getBetterPriorityParams(): BetterPriorityEndpointParams {
|
|
|
- const query = this.props.location.query ?? {};
|
|
|
- const {
|
|
|
- eventHalflifeHours,
|
|
|
- hasStacktrace,
|
|
|
- issueHalflifeHours,
|
|
|
- logLevel,
|
|
|
- norm,
|
|
|
- v2,
|
|
|
- relativeVolume,
|
|
|
- } = query;
|
|
|
-
|
|
|
- return {
|
|
|
- eventHalflifeHours,
|
|
|
- hasStacktrace,
|
|
|
- issueHalflifeHours,
|
|
|
- logLevel,
|
|
|
- norm,
|
|
|
- v2,
|
|
|
- relativeVolume,
|
|
|
- };
|
|
|
- }
|
|
|
-
|
|
|
getEndpointParams = (): EndpointParams => {
|
|
|
const {selection} = this.props;
|
|
|
|
|
@@ -389,10 +356,8 @@ class IssueListOverview extends Component<Props, State> {
|
|
|
params.groupStatsPeriod = groupStatsPeriod;
|
|
|
}
|
|
|
|
|
|
- const mergedParams = {...params, ...this.getBetterPriorityParams()};
|
|
|
-
|
|
|
// only include defined values.
|
|
|
- return pickBy(mergedParams, v => defined(v)) as EndpointParams;
|
|
|
+ return pickBy(params, v => defined(v)) as EndpointParams;
|
|
|
};
|
|
|
|
|
|
getSelectedProjectIds = (): string[] => {
|
|
@@ -886,7 +851,7 @@ class IssueListOverview extends Component<Props, State> {
|
|
|
}
|
|
|
|
|
|
transitionTo = (
|
|
|
- newParams: Partial<EndpointParams> | Partial<BetterPriorityEndpointParams> = {},
|
|
|
+ newParams: Partial<EndpointParams> = {},
|
|
|
savedSearch: (SavedSearch & {projectId?: number}) | null = this.props.savedSearch
|
|
|
) => {
|
|
|
const query = {
|