Repository navigation
fix(cli): Scope issue list counts to the release: filter - #1512
Merged
Merged
Conversation
The issues-list endpoint's per-group seen-stats (count/userCount) honor statsPeriod but ignore query filters like release:, so `issue list --query 'release:"X"'` over-reported counts and --sort freq/user ranked by period-wide totals. When the query filters on a count-unscoped key, refetch count/userCount per issue from the events endpoint (issue:<shortId> AND the user's query) and re-rank for freq/user sorts. Best-effort: a failed refetch keeps the list-endpoint values. Ported from getsentry/cli#1528. Refs getsentry/cli#1518 Co-Authored-By: Burak Yigit Kaya <burak.kaya@sentry.io>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 8e570bd. Configure here.
…ters Run the scoped-count refetch when --sort freq/user drives ordering even if --fields omits count/userCount, so ranking follows the filtered counts. Also detect release: in regex filters (release://...//).
BYK
approved these changes
Oct 16, 2026
sentry-junior Bot
added a commit
that referenced
this pull request
Oct 17, 2026
#1512 landed on main with a call to the old generated parser's parse(), which this branch removes. Use parseSearchNodes, which returns null for queries that don't parse.
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Port of getsentry/cli#1528 into the toolkit monorepo.
sentry issue list --query 'release:"X"'returns the right issues, but thecount/userCountit shows come from the issues-list endpoint's seen-stats, which respectstatsPeriodbut ignore filters likerelease:. Release-scoped triage over-reported, and--sort freq/--sort userranked by those same period-wide totals.When the query filters on a count-unscoped key (currently
release:),issue listnow refetchescount()/count_unique(user)per issue from the events endpoint usingissue:<SHORT-ID>plus the user's query, overwrites the displayed numbers, and re-ranks for freq/user sorts. Requests use bounded concurrency (ORG_FANOUT_CONCURRENCY). It's best-effort: queries without such a filter make no extra calls, and a failed refetch keeps the list-endpoint values so the listing never breaks.ExploreQueryOptionsgains an optionalprojectparam so the events query can target a specific project.Two hunks needed manual resolution against toolkit (
list.tsimport block,explore.tsparams), and the files were reformatted with oxfmt. Generated skill reference docs from the original PR were dropped since they're regenerated here.Refs getsentry/cli#1518
via byk.
--
View Junior Session [Sentry]