getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
37.67k stars 4.05k forks source link

[BitBucket] "Set up Code Mapping" modal in Issue Details #68600

Open InterstellarStella opened 3 months ago

InterstellarStella commented 3 months ago

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

  1. Set up the BitBucket integration
  2. Open an issue with an event that has working source maps

Expected Result

There is nothing in the stack trace prompting us to set up code mappings.

Actual Result

We see the "Set up Code Mapping" modal in the stack trace. This opens a window that prompts us to paste a URL for the path to the file from BitBucket. However, currently this only works for GitLab and GitHub, and we'd have to set up the code mappings manually through the integration settings instead. This leads to a "We don't have access to that source code repo" error banner once clicking "Save", or doesn't do anything at all.

We should either remove this modal when we detect that only the BitBucket integration is set up, or add the functionality for BitBucket too.

Product Area

Settings - Integrations

Link

No response

DSN

No response

Version

No response

getsantry[bot] commented 3 months ago

Assigning to @getsentry/support for routing ⏲️

getsantry[bot] commented 3 months ago

Routing to @getsentry/product-owners-settings-integrations for triage ⏲️

cathteng commented 3 months ago

We have docs for setting up codemappings with Bitbucket, so it theoretically should work. It appears that the modal in the stack trace might not be working properly if you are able to set up the code mapping through the integration settings. I will ask issues team if they know anything about this.

getsantry[bot] commented 3 months ago

Routing to @getsentry/product-owners-issues for triage ⏲️

malwilley commented 3 months ago

@InterstellarStella you're right! We should at the very least display some help content in that modal rather than the form when we don't support the source code provider. But ideally BitBucket would be supported as well. Will place on our backlog.

The workaround for now is to go to the docs page that @cathteng linked (specifically this section). While automatic code mapping generation is not supported for Bitbucket, users can still set it up themselves using that info.