-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
fix(preprod): filter insight diff tabs by status #106900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Ensure unresolved/resolved tabs only show matching diff rows and recompute potential savings from the filtered items.
static/app/views/preprod/buildComparison/main/insightComparisonSection.tsx
Outdated
Show resolved
Hide resolved
8c839c8 to
55ae8dd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
| ); | ||
| if (resolvedInsight) { | ||
| byTab.resolved.push(resolvedInsight); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing status check for resolved tab filtering
Medium Severity
The resolved tab filtering lacks a status === 'resolved' check, unlike the unresolved and new tabs which both check the insight's status before including it. This causes any insight (regardless of status) that has removed or decreased diff items to appear in the resolved tab. An insight with status: 'unresolved' could appear in both the unresolved and resolved tabs if it has mixed diff types.
NOTE: the insight tabs show the # of insight cards, where within the cards, its the number of insight items, so there's a mismatch between tabs and what is on the UI. That existed already, not going to touch in this PR
prod
Prod
PR (filtered for unresolved)

PR (filter for resolved)
