Skip to content
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

fix(grouping): Fix missing system-only stacktraces in similar issues diff view #73703

Merged
merged 2 commits into from
Jul 3, 2024

Conversation

lobsterkatie
Copy link
Member

@lobsterkatie lobsterkatie commented Jul 2, 2024

As reported in #72607, sometimes the diff view (used on both the merged and similar issues tabs of the issue details page) shows no stacktraces, even when the events being compared do in fact have them.

The culprit turns out to be the check here, which filters the frames based on in-app status when the Seer similar issues flag is on. On an individual frame level, this works great, but it can leave the stacktrace overall in a bad state, with no frames to show, which happens whenever the flag is on and the stacktrace consists of nothing but system frames.

This fixes that by filtering the stacktrace as a whole before passing frames to getFrame, so we can recover if it turns out said filtering would leave us with no frames. It also refactors the tests a bit to make sure we're covering all cases.

Fixes #72607.

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jul 2, 2024
Copy link

codecov bot commented Jul 2, 2024

Bundle Report

Changes will decrease total bundle size by 142 bytes ⬇️

Bundle name Size Change
app-webpack-bundle-array-push 27.25MB 142 bytes ⬇️

@lobsterkatie lobsterkatie marked this pull request as ready for review July 2, 2024 23:01
@@ -122,39 +122,76 @@ describe('RawStacktraceContent', function () {
);
});

const data_with_non_in_app: StacktraceType = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

snakecase begone!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ha - not mine, but I hadn't even noticed! All this time programming in python has corrupted me!

@lobsterkatie lobsterkatie force-pushed the kmclb-fix-missing-diff-in-similar-issues-view branch from 834210f to d07658b Compare July 2, 2024 23:26
@lobsterkatie lobsterkatie merged commit 6b1b5cd into master Jul 3, 2024
42 checks passed
@lobsterkatie lobsterkatie deleted the kmclb-fix-missing-diff-in-similar-issues-view branch July 3, 2024 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The Diff button inside the Similar Issues tab should show grouping information, not just error message
2 participants