Skip to content

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

cursor[bot]

This comment was marked as outdated.

@shayna-ch shayna-ch merged commit 40ab54e into master Aug 11, 2025
46 checks passed
@shayna-ch shayna-ch deleted the shayna-ch/remove-line-numbers-from-diff branch August 11, 2025 17:09
@github-actions github-actions bot locked and limited conversation to collaborators Aug 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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