Browse Source

fix(issue-stream): Change default query request (#59452)

this pr makes a slight change to the params we send to the backend. Now,
on the initial load where we are not waiting for saved searches, we will
delete the `query` query param if there is no specified query. in the
endpoint (https://github.com/getsentry/sentry/pull/59484) , it will
check if a query is sent and use it if it is. If not, it will go through
the process of checking the saves searches and use the default
"is:unresolved" if needed.
Richard Roggenkemper 1 year ago
parent
commit
20b7c93153
1 changed files with 8 additions and 0 deletions
  1. 8 0
      static/app/views/issueList/overview.tsx

+ 8 - 0
static/app/views/issueList/overview.tsx

@@ -561,6 +561,14 @@ class IssueListOverview extends Component<Props, State> {
       requestParams.searchId = this.props.selectedSearchId;
     }
 
+    if (
+      this.props.organization.features.includes('issue-stream-performance') &&
+      this.props.savedSearchLoading &&
+      !this.props.location.query.query
+    ) {
+      delete requestParams.query;
+    }
+
     const currentQuery = this.props.location.query || {};
     if ('cursor' in currentQuery) {
       requestParams.cursor = currentQuery.cursor;