-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
fix(code mappings): Display the modal from issue details for all platforms #107752
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,7 +17,6 @@ import type {Event, Frame} from 'sentry/types/event'; | |
| import type {StacktraceLinkResult} from 'sentry/types/integrations'; | ||
| import {CodecovStatusCode} from 'sentry/types/integrations'; | ||
| import type {Organization} from 'sentry/types/organization'; | ||
| import type {PlatformKey} from 'sentry/types/project'; | ||
| import {trackAnalytics} from 'sentry/utils/analytics'; | ||
| import {getAnalyticsDataForEvent} from 'sentry/utils/events'; | ||
| import {getIntegrationIcon, getIntegrationSourceUrl} from 'sentry/utils/integrationUtil'; | ||
|
|
@@ -29,22 +28,6 @@ import useProjects from 'sentry/utils/useProjects'; | |
| import StacktraceLinkModal from './stacktraceLinkModal'; | ||
| import useStacktraceLink from './useStacktraceLink'; | ||
|
|
||
| // Keep this list in sync with PLATFORMS_CONFIG in auto_source_code_config/constants.py | ||
| const supportedStacktracePlatforms: PlatformKey[] = [ | ||
| 'clojure', | ||
| 'csharp', | ||
| 'elixir', // Elixir is not listed on the main list | ||
| 'go', | ||
| 'groovy', | ||
| 'java', | ||
| 'javascript', | ||
| 'node', | ||
| 'php', | ||
| 'python', | ||
| 'ruby', | ||
| 'scala', | ||
| ]; | ||
|
|
||
| const scmProviders = ['github', 'gitlab', 'bitbucket']; | ||
|
|
||
| interface StacktraceLinkProps { | ||
|
|
@@ -231,11 +214,8 @@ export function StacktraceLink({frame, event, line, disableSetup}: StacktraceLin | |
| // Check if the line starts and ends with {snip} | ||
| const isMinifiedJsError = | ||
| event.platform === 'javascript' && /(\{snip\}).*\1/.test(line ?? ''); | ||
| const isUnsupportedPlatform = !supportedStacktracePlatforms.includes( | ||
| event.platform as PlatformKey | ||
| ); | ||
|
|
||
| const hideErrors = isMinifiedJsError || isUnsupportedPlatform || disableSetup; | ||
| const hideErrors = isMinifiedJsError || disableSetup; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unhandled KeyError crashes save for new platformsHigh Severity Removing the
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The Suggested FixIn Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. |
||
| // for .NET projects, if there is no match found but there is a GitHub source link, use that | ||
| if ( | ||
| frame.sourceLink && | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -411,7 +411,7 @@ function NativeFrame({ | |
| : tn('Show %s more frame', 'Show %s more frames', hiddenFrameCount)} | ||
| </ShowHideButton> | ||
| ) : null} | ||
| <Flex> | ||
| <Flex align="center" gap="sm"> | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These changes are so that:
|
||
| {showStacktraceLink && ( | ||
| <ErrorBoundary> | ||
| <StacktraceLink | ||
|
|
||


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.
Both frontend & backend changes in this PR but it's fine; the backend change is just this comment removal