Skip to content

fix(releases): default missing health stats and group counts - #129429

Draft
joshuarli wants to merge 1 commit into
getsentry:masterfrom
joshuarli:fix/release-serializer-defaults
Draft

joshuarli wants to merge 1 commit into
getsentry:masterfrom
joshuarli:fix/release-serializer-defaults

Conversation

@joshuarli

@joshuarli joshuarli commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

healthData.stats returned null when the release-health payload omitted stats, and a project entry could return newGroups: null when ReleaseProject.new_groups was null. Return {} and 0 so the response always matches the documented shape.

The stats mapping is rebuilt with str keys instead of embedding the input mapping, so the response no longer aliases release-health data.

Missing health stats serialized as null and per-project newGroups could
serialize as null when the database value was null. Return an empty
stats object and a zero count so API clients always get the documented
shape.

The stats mapping is rebuilt with str keys so the response no longer
aliases the release-health input mapping.

This branch has not been deployed

No deployments
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.

1 participant