Skip to content

feat(code-review): Add overwatch repo settings rpc#104744

Merged
suejung-sentry merged 7 commits intomasterfrom
sshin/code-review-ow
Dec 12, 2025
Merged

feat(code-review): Add overwatch repo settings rpc#104744
suejung-sentry merged 7 commits intomasterfrom
sshin/code-review-ow

Conversation

@suejung-sentry
Copy link
Copy Markdown
Contributor

@suejung-sentry suejung-sentry commented Dec 11, 2025

We're saving code review settings to new table sentry_repositorysettings - have overwatch service read the values from here in its rpc call instead of the data returned at the old existing endpoint (PreventPrreviewSentryOrgEndpoint). We can deprecate that one once we're done cutting over to the new one.

Closes https://linear.app/getsentry/issue/ENG-6098

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Dec 11, 2025
@suejung-sentry suejung-sentry force-pushed the sshin/code-review-ow branch 3 times, most recently from 6d9b353 to 078c6a0 Compare December 11, 2025 08:21
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Dec 11, 2025
@github-actions
Copy link
Copy Markdown
Contributor

🚨 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 #discuss-dev-infra channel.

@linear
Copy link
Copy Markdown

linear bot commented Dec 11, 2025

re_path(
r"^code-review/repo-settings/$",
CodeReviewRepoSettingsEndpoint.as_view(),
name="sentry-api-0-code-review-repo-settings",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This rpc will replace the existing PreventPrReviewSentryOrgEndpoint which we can delete when ready.
Setting this up here as a sibling to allow for backwards compatible cutover

@codecov
Copy link
Copy Markdown

codecov bot commented Dec 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #104744      +/-   ##
===========================================
+ Coverage   80.49%    80.53%   +0.03%     
===========================================
  Files        9370      9353      -17     
  Lines      402244    401334     -910     
  Branches    25843     25743     -100     
===========================================
- Hits       323781    323199     -582     
+ Misses      78015     77695     -320     
+ Partials      448       440       -8     

@suejung-sentry suejung-sentry marked this pull request as ready for review December 11, 2025 15:56
@suejung-sentry suejung-sentry requested a review from a team December 11, 2025 15:56
@suejung-sentry suejung-sentry requested a review from a team as a code owner December 11, 2025 15:56
Copy link
Copy Markdown
Contributor

@ajay-sentry ajay-sentry left a comment

Choose a reason for hiding this comment

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

lgtm, small stuff

@suejung-sentry suejung-sentry merged commit a593b3e into master Dec 12, 2025
66 checks passed
@suejung-sentry suejung-sentry deleted the sshin/code-review-ow branch December 12, 2025 01:44
@github-actions github-actions bot locked and limited conversation to collaborators Dec 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants