Skip to content

feat(seer onboarding): Function to set Seer settings via onboarding wizard#104642

Merged
Mihir-Mavalankar merged 6 commits intomasterfrom
onboarding-seer-settings-func
Dec 11, 2025
Merged

feat(seer onboarding): Function to set Seer settings via onboarding wizard#104642
Mihir-Mavalankar merged 6 commits intomasterfrom
onboarding-seer-settings-func

Conversation

@Mihir-Mavalankar
Copy link
Copy Markdown
Contributor

PR Details

@Mihir-Mavalankar Mihir-Mavalankar self-assigned this Dec 9, 2025
@Mihir-Mavalankar Mihir-Mavalankar requested a review from a team as a code owner December 9, 2025 22:29
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Dec 9, 2025
@Mihir-Mavalankar
Copy link
Copy Markdown
Contributor Author

@billyvg the main point to keep in mind would be the give the repos to this function in the SeerRepoDefinition format.

@Mihir-Mavalankar Mihir-Mavalankar marked this pull request as draft December 9, 2025 22:30
Copy link
Copy Markdown
Member

@JoshFerge JoshFerge left a comment

Choose a reason for hiding this comment

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

looks good on my end will let others chime in

@codecov
Copy link
Copy Markdown

codecov bot commented Dec 9, 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   #104642      +/-   ##
===========================================
+ Coverage   79.26%    80.47%   +1.20%     
===========================================
  Files        9363      9363              
  Lines      401809    401833      +24     
  Branches    25830     25830              
===========================================
+ Hits       318508    323380    +4872     
+ Misses      82859     78011    -4848     
  Partials      442       442              

@pytest.mark.django_db
class TestOnboardingSeerSettingsUpdate(TestCase):
def test_rca_disabled_sets_automation_tuning_off(self) -> None:
"""Tests that when RCA is disabled, automation tuning is set to OFF for org and projects."""
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: can probably remove a lot of these extra comments

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.

Hmm it's just 1 line. I kinda of like a small test description.

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.

couple small things otherwise lgtm

@Mihir-Mavalankar Mihir-Mavalankar merged commit c97e92e into master Dec 11, 2025
66 of 67 checks passed
@Mihir-Mavalankar Mihir-Mavalankar deleted the onboarding-seer-settings-func branch December 11, 2025 18:28
ajay-sentry added a commit that referenced this pull request Dec 11, 2025
This endpoint is going to be used to bulk update each project's
`sentry:autofix_automation_tuning` setting. Needed for the seer settings
bulk update table.

Basically, takes 2 input params, fixes and pr_creation, where fixes is
the "default" toggle. If its on it turns the automation setting to
medium, and if it's off it also updates the seer project preferences to
be code_changes.

If fixes is true, then we can also look at the value of pr_creation and
if that's true we can make an RPC call to seer to update those settings
as well. Similar to how it's being done in
#104642

Closes
https://linear.app/getsentry/issue/ENG-6106/api-create-put-seer-automation-option-setting-update-endpoint

<!--

  Sentry employees and contractors can delete or ignore the following.

-->

### Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated
in the State of Delaware in 2015 as Functional Software, Inc. and is
gonna need some rights from me in order to utilize my contributions in
this here PR. So here's the deal: I retain all rights, title and
interest in and to my contributions, and by keeping this boilerplate
intact I confirm that Sentry can use, modify, copy, and redistribute my
contributions, under Sentry's choice of terms.

---------

Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants