Skip to content

ref(grouping): remove line and column numbers from similar issues stacktrace diff #97536

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

shayna-ch
Copy link
Member

@shayna-ch shayna-ch commented Aug 8, 2025

Line and column numbers aren't considered in grouping so there is no need to highlight them in the stacktrace diff for similar issues.

Added an includeLocation option to the getFrame functions to turn off getting line/column numbers.

Before:
include_location_true

After:
include_location_false

@shayna-ch shayna-ch requested a review from lobsterkatie August 8, 2025 22:52
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Aug 8, 2025
@shayna-ch shayna-ch marked this pull request as ready for review August 8, 2025 23:03
@shayna-ch shayna-ch requested a review from a team as a code owner August 8, 2025 23:03
cursor[bot]

This comment was marked as outdated.

@@ -79,7 +84,7 @@ function getPythonFrame(frame: Frame): string {
return result;
}

export function getJavaFrame(frame: Frame): string {
export function getJavaFrame(frame: Frame, includeLocation = true): string {
Copy link
Member

Choose a reason for hiding this comment

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

this function is only called in this file and in tests, lets make includeLocation a required parameter and update the tests. I'd do the same with the other functions.

Adding a test in static/app/components/events/interfaces/crashContent/stackTrace/rawContent.spec.tsx for this might also be good

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.

2 participants