Skip to content

Conversation

jasonyuezhang
Copy link
Owner

followup to getsentry#101003
reverts getsentry#99555


Copied from getsentry#101212
Original PR: getsentry#101212

Copy link

Correct Per-Project New Issues Count in Release UI Components

This PR fixes the UI logic for displaying the new issues count (newGroups) per project in release-related components. It reverts a previous change that incorrectly referenced newGroups from the release object, restoring the correct access of newGroups from each project object within a release. The update ensures that metrics like new issues counts are accurately rendered in several areas of the frontend, improving the consistency of data shown per project in the releases UI.

Key Changes

• Updated newGroups reference from release.newGroups to release.projects[x].newGroups in all relevant components and mapping functions.
• Modified props in ReleaseCardProjectRow and its parent to correctly use the newGroups value from the project object.
• Fixed assignment of the error_count field in both useOrganizationReleases.tsx and releasesDrawerTable.tsx to use newGroups from the first project in a release.
• Removed obsolete direct propagation and destructuring of newGroups at the release level in affected UI files.

Affected Areas

static/app/views/releases/list/releaseCard/releaseCardProjectRow.tsx
static/app/views/insights/sessions/queries/useOrganizationReleases.tsx
static/app/views/releases/drawer/releasesDrawerTable.tsx
static/app/views/releases/list/releaseCard/index.tsx

This summary was automatically generated by @propel-code-bot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants