Skip to content

fix(code mappings): For platforms lacking supported extensions, fall back to default frame info#107893

Merged
shashjar merged 1 commit intomasterfrom
id-1333-enable-set-up-code-mapping-modal-from-issue-details-for-all-platforms-backend-changes
Feb 10, 2026
Merged

fix(code mappings): For platforms lacking supported extensions, fall back to default frame info#107893
shashjar merged 1 commit intomasterfrom
id-1333-enable-set-up-code-mapping-modal-from-issue-details-for-all-platforms-backend-changes

Conversation

@shashjar
Copy link
Member

@shashjar shashjar commented Feb 9, 2026

Same changes as #107752, just separating backend & frontend changes.

Precursor to #107894.

Part of ID-1333.

The "Set Up Code Mapping" modal is different from the code mapping config in the integration settings. The former takes the source code URL for the file and attempts to derive what the source/stack root should be; the latter just asks for that input directly.

To account for this, I modified src/sentry/issues/auto_source_code_config/frame_info.py to not fail for any "unsupported" platforms. The only effect of this will be that there's no auto-suggested URL in the modal for native platforms, but creating a code mapping will still work from there. No regression/change in behavior for platforms that are already included in PLATFORMS_CONFIG.

@linear
Copy link

linear bot commented Feb 9, 2026

def create_frame_info(frame: Mapping[str, Any], platform: str | None = None) -> FrameInfo:
"""Factory function to create the appropriate FrameInfo instance."""
if platform:
if platform and supported_platform(platform):
Copy link
Member Author

Choose a reason for hiding this comment

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

This change is so that creating a PlatformConfig object doesn't fall for native platforms (any platforms not in PLATFORMS_CONFIG.

@shashjar shashjar requested a review from a team February 9, 2026 23:31
@shashjar shashjar marked this pull request as ready for review February 9, 2026 23:32
@shashjar shashjar merged commit 2c25d3f into master Feb 10, 2026
76 checks passed
@shashjar shashjar deleted the id-1333-enable-set-up-code-mapping-modal-from-issue-details-for-all-platforms-backend-changes branch February 10, 2026 00:17
shashjar added a commit that referenced this pull request Feb 10, 2026
…forms (#107894)

Same changes as #107752, just
separating backend & frontend changes.

Follow-up to #107893.

Part of
[ID-1333](https://linear.app/getsentry/issue/ID-1333/enable-the-set-up-code-mapping-modal-from-issue-details-for-all).

This PR displays the "Set Up Code Mapping" button from in-app stack
frames on the issue details page for all platforms.

After changes:
<img width="355" height="342" alt="image"
src="https://github.com/user-attachments/assets/919d1572-08de-46d5-8386-cd3669d65dd5"
/>
<img width="343" height="337" alt="image"
src="https://github.com/user-attachments/assets/7dc8d286-af04-40ff-8d5d-a40f5f05aa06"
/>
jaydgoss pushed a commit that referenced this pull request Feb 12, 2026
…back to default frame info (#107893)

Same changes as #107752, just
separating backend & frontend changes.

Precursor to #107894.

Part of
[ID-1333](https://linear.app/getsentry/issue/ID-1333/enable-the-set-up-code-mapping-modal-from-issue-details-for-all).

The "Set Up Code Mapping" modal is different from the code mapping
config in the integration settings. The former takes the source code URL
for the file and attempts to derive what the source/stack root should
be; the latter just asks for that input directly.

To account for this, I modified
`src/sentry/issues/auto_source_code_config/frame_info.py` to not fail
for any "unsupported" platforms. The only effect of this will be that
there's no auto-suggested URL in the modal for native platforms, but
creating a code mapping will still work from there. No regression/change
in behavior for platforms that are already included in
`PLATFORMS_CONFIG`.
jaydgoss pushed a commit that referenced this pull request Feb 12, 2026
…forms (#107894)

Same changes as #107752, just
separating backend & frontend changes.

Follow-up to #107893.

Part of
[ID-1333](https://linear.app/getsentry/issue/ID-1333/enable-the-set-up-code-mapping-modal-from-issue-details-for-all).

This PR displays the "Set Up Code Mapping" button from in-app stack
frames on the issue details page for all platforms.

After changes:
<img width="355" height="342" alt="image"
src="https://github.com/user-attachments/assets/919d1572-08de-46d5-8386-cd3669d65dd5"
/>
<img width="343" height="337" alt="image"
src="https://github.com/user-attachments/assets/7dc8d286-af04-40ff-8d5d-a40f5f05aa06"
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claude-code-assisted Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants