Skip to content

feat(cli): Rewrite is: OR in issue and feedback list queries - #1674

Merged
BYK merged 2 commits into
mainfrom
feat/issue-search-rewrite-rollout
Oct 27, 2026
Merged

BYK merged 2 commits into
mainfrom
feat/issue-search-rewrite-rollout

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to #1671. MCP search_issues already rewrites is:X OR is:Y into status:[...] / substatus:[...] lists, but the CLI's issue list and feedback list still rejected those queries even though they hit the same issues endpoint.

Both commands now parse --query with sanitizeIssueQuery, a thin wrapper over the existing sanitizeQuery that calls the shared rewriteSearchQuery from @sentry/toolkit-core/search-query with issueSearch: true — the same call MCP makes. No rewrite logic is duplicated; the CLI keeps its own stderr warning and ValidationError reporting. Commands that don't query the issues endpoint keep plain sanitizeQuery, since is: is issue-search syntax.

The issue list help, --query brief, docs fragment and SEARCH_SYNTAX_REFERENCE now mention the status:/substatus: lists and the automatic rewrite instead of saying OR is never supported.

feedback list filters to unresolved by default, so -q "is:resolved OR is:ignored" now returns no results instead of an error. That's correct, but worth knowing.

via @BYK.

--

View Junior Session [Sentry]

sentry-junior Bot and others added 2 commits October 26, 2026 23:40
`issue list` and `feedback list` send --query to the issues endpoint, so
use the issue-search rewrite there: `is:A OR is:B` becomes a
`status:[...]` or `substatus:[...]` in-list, and parentheses that reduce
to plain terms are unwrapped. Commands that query events, logs, spans,
traces, or replays keep the generic rewrite.

Mention status/substatus in-lists in the issue list help, the CLI docs
fragment, and the empty-result search syntax reference.

Co-Authored-By: Burak Yigit Kaya <126780+BYK@users.noreply.github.com>
Co-Authored-By: Burak Yigit Kaya <126780+BYK@users.noreply.github.com>
@vercel

vercel Bot commented Oct 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
sentry-local Skipped Skipped Oct 26, 2026 11:46pm UTC

Request Review

@github-actions github-actions Bot added the risk: medium PR risk score: medium label Oct 26, 2026
@BYK
BYK merged commit 6cba842 into main Oct 27, 2026
32 of 33 checks passed
@BYK
BYK deleted the feat/issue-search-rewrite-rollout branch October 27, 2026 09:10

This branch was previously deployed

1 inactive deployment
Preview — 0d3c06d7 Deployed Oct 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant