Skip to content

ref(seer): Read project preferences only from Sentry DB, part 2: handoff & stopping point paths#113972

Merged
srest2021 merged 2 commits intomasterfrom
srest2021/CW-1175-pt2
Apr 24, 2026
Merged

ref(seer): Read project preferences only from Sentry DB, part 2: handoff & stopping point paths#113972
srest2021 merged 2 commits intomasterfrom
srest2021/CW-1175-pt2

Conversation

@srest2021
Copy link
Copy Markdown
Member

@srest2021 srest2021 commented Apr 24, 2026

Relates to CW-1175

Part 2 of migrating project-preference reads off the Seer API. Handoff & stopping-point read sites should read from the Sentry DB. Writes still dual-write via the Seer API. Types and model validation tightened where possible.

Modified callsites:

  • OrganizationAutofixAutomationSettingsEndpoint GET/POST
  • get_automation_stopping_point (issue_summary) and deleted the now-dead _fetch_user_preference helper
  • _get_handoff_config_if_applicable and _clear_handoff_preference (on_completion_hook)
  • _launch_agents_for_repos (coding_agent)
  • RPC trigger_coding_agent_launch

Other:

  • Rename DEFAULT_AUTOFIX_AUTOMATION_TUNING_DEFAULT to AUTOFIX_AUTOMATION_TUNING_DEFAULT and use it in callsites.
  • Tests updated to use real SeerProjectRepository rows and project options instead of mocking the Seer API. Tests for now-unreachable Seer-API fallback paths are removed.

Most of this PR is just test updates!

@linear-code
Copy link
Copy Markdown

linear-code Bot commented Apr 24, 2026

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 24, 2026
Comment thread src/sentry/seer/endpoints/seer_rpc.py
@getsentry getsentry deleted a comment from github-actions Bot Apr 24, 2026
@srest2021 srest2021 marked this pull request as ready for review April 24, 2026 20:01
@srest2021 srest2021 requested review from a team as code owners April 24, 2026 20:01
@srest2021 srest2021 merged commit e9e0b2c into master Apr 24, 2026
79 checks passed
@srest2021 srest2021 deleted the srest2021/CW-1175-pt2 branch April 24, 2026 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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