Repository navigation
feat(apidocs): Publish issue stats as experimental - #131248
Merged
Merged
Conversation
The organization issue stats endpoint moves to PUBLIC_EXPERIMENTAL as listOrganizationIssueStats, with the parameters the handler reads and the published StreamGroupSerializerSnubaResponse shape. collapse gets its own parameter because it defaults to base here. No behavior change. Part of #131199
…sues-stats # Conflicts: # tests/sentry/seer/endpoints/test_organization_agent_token.py
cvxluo
approved these changes
Nov 16, 2026
Restores the old docstring's point that start and end must be sent together, per review. Part of #131199
This branch was successfully 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.
Part of #131199.
sentry-tui loads its issue list the way the Issues page does:
listOrganizationIssueswithcollapse=stats, and then the counts and sparklines fromissues-stats. It reads both through the generated@sentry/apiSDK, which only has published operations, andissues-statsis unpublished.GET /organizations/{org}/issues-stats/(OrganizationGroupIndexStatsEndpoint)PRIVATE→PUBLIC_EXPERIMENTALaslistOrganizationIssueStatsDocs, checked against the handler:
groups: required, at most 100.environment,project,statsPeriod/start/end(andstatsPeriodStart/statsPeriodEnd),groupStatsPeriod,queryandexpand.queryfeeds thefilteredcounts throughbuild_query_params_from_request.collapsegets its ownIssueParams.STATS_COLLAPSE. Here it defaults to["base"], and passing any value replaces that default.list[StreamGroupSerializerSnubaResponse], the published issue-list type. Every field exceptidisNotRequired, so it fits the collapsed rowsStreamGroupSerializerSnubareturns by default.Events, likelistOrganizationIssues. The old RST docstring is now a short description.Behavior, permissions, rate limits and responses stay the same, and nothing breaks. The spec only gains this one operation.
The agent-token permission matrix picks up the row, with a
groupsquery param.Moving sentry-tui or the CLI onto this operation waits for an
@sentry/apirelease that includes it.--
View Session [Sentry]