ref(scm): Implement sentry-scm dependency#112969
Conversation
|
🚨 Warning: This pull request contains Frontend and Backend changes! It's discouraged to make changes to Sentry's Frontend and Backend in a single pull request. The Frontend and Backend are not atomically deployed. If the changes are interdependent of each other, they must be separated into two pull requests and be made forward or backwards compatible, such that the Backend or Frontend can be safely deployed independently. Have questions? Please ask in the |
Sentry Snapshot Testing
|
Backend Test FailuresFailures on
|
…/getsentry/sentry into cmanallen/implement-scm-platform
Backend Test FailuresFailures on
|
Backend Test FailuresFailures on
|
Backend Test FailuresFailures on
|
Backend Test FailuresFailures on
|
| publish_status = { | ||
| "POST": ApiPublishStatus.EXPERIMENTAL, | ||
| } | ||
| publish_status = {"GET": ApiPublishStatus.EXPERIMENTAL, "POST": ApiPublishStatus.EXPERIMENTAL} |
There was a problem hiding this comment.
tbh dont remember what this does, (is it for openapi?) but shouldn't it be private?
| ), | ||
| re_path( | ||
| r"^scm-rpc/(?P<method_name>\w+)/$", | ||
| r"^scm-rpc/$", |
There was a problem hiding this comment.
where does the method routing get handled now?
There was a problem hiding this comment.
The equivalent of method is handled in the POST body.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 0e43521. Configure here.

Replaces
sentry/scmimplementation with a newsentry-scmdependency.sentry-scmreplicates the behavior ofsentry/scmbut moves it to a third-party package so that it may be distributed to multiple services.There is a minor refactor contained in here. It was a simplification of some overly complex behaviors and a reduction in the SourceCodeManager class's instantiation capabilities. Previously we allowed initialization from an integration instance. However, this goes against one of the goals of the SCM which is to enforce access-controls. For now its been removed. This optimization can be added later if necessary.