Skip to content

Conversation

@cvxluo
Copy link
Contributor

@cvxluo cvxluo commented Jan 5, 2026

Fixes SENTRY-44YF

In some (very specific) queries, we fail to unpack issue search conditions correctly. More specifically, when we have a negation, plus a 'contains' filter, plus wildcards, we end up with one too many levels of nesting, leading to the error. We can unpack this condition to OR everything together and handle it correctly.

My understanding is that a more thorough solution is to migrate the issue search to use snql. I opted for this solution since it is considerably simpler, and I don't see an easy way to do this migration.

example: !title:[*test*,*test2*]

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jan 5, 2026
@cvxluo cvxluo marked this pull request as ready for review January 6, 2026 00:24
@cvxluo cvxluo requested review from a team as code owners January 6, 2026 00:24
@cvxluo cvxluo requested a review from a team January 6, 2026 00:24
Copy link
Member

@shashjar shashjar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense!

@cvxluo cvxluo merged commit 4b36fbf into master Jan 6, 2026
68 checks passed
@cvxluo cvxluo deleted the cvxluo/negated-contains-issue-search branch January 6, 2026 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants