Skip to content

feat(seer): Add defaultAutomationHandoff org option#108100

Draft
JoshFerge wants to merge 3 commits intomasterfrom
jferg/coding-agents-section-be
Draft

feat(seer): Add defaultAutomationHandoff org option#108100
JoshFerge wants to merge 3 commits intomasterfrom
jferg/coding-agents-section-be

Conversation

@JoshFerge
Copy link
Member

Summary

  • Adds a new sentry:default_automation_handoff org option (JSON string) that stores the default coding agent for new projects
  • Serializes defaultAutomationHandoff in the organization details API response
  • At project creation time, reads the org default and applies it to the project's Seer preferences via automation_handoff

Test plan

  • Verify PUT /api/0/organizations/{org}/ accepts defaultAutomationHandoff as a JSON string and persists it
  • Verify GET /api/0/organizations/{org}/ returns defaultAutomationHandoff in the response
  • Create a new project with a non-default handoff set at org level → verify the project inherits the setting via Seer API

Adds a new org option `sentry:default_coding_agent_handoff` (int, nullable)
that stores the default coding agent integration ID for new projects.
None = Seer (default), otherwise an integration ID. Includes validation
that the integration belongs to the organization.
Tests cover: default value is None, setting a valid integration ID,
clearing back to None, rejecting an invalid integration ID, and
rejecting an integration belonging to another org.

Also moves integration_service import to top of file and simplifies
validation error message.
Ensure the integration set as default coding agent handoff is actually a
coding agent provider, not just any org integration (e.g. Slack).
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.

1 participant