Repository navigation
Conversation
gricha
force-pushed
the
ref/sa-integration-issue-config
branch
3 times, most recently
from
November 3, 2026 04:03
a03a81f to
df0b19f
Compare
Contributor
Sentry Snapshot Testing
|
get_create_issue_config() takes the caller as a RequestPrincipal. The two places that need a user skip their personal part when there isn't one: Jira's saved per-user defaults (a service account gets the project defaults) and the AI-generated title and description (no user id sent). A service account calling Jira's create config used to fail with user-required; users see no change. group_integration_details.py was the last file on the request.user allowlist.
gricha
force-pushed
the
ref/sa-integration-issue-config
branch
from
November 3, 2026 04:41
df0b19f to
1a6d709
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Service accounts can load the create-issue form for integrations, so a Seer agent can file a GitHub or Jira issue. Drops
group_integration_details.py, the last file on therequest.userallowlist (1 → 0).get_create_issue_config()and its overrides (GitHub, GitLab, Bitbucket, VSTS, Jira, Jira Server) take the caller as aRequestPrincipal; the endpoint keeps passingrequest.user. Only two places need a user, and both skip their personal part when there isn't one:get_defaults): a service account gets the project defaults. Before, it failed withuser-requiredbecause itsServiceAccountIdwent into the user-options lookup.run_oneshotalready accepts None).Users see no change. getsentry doesn't override
get_create_issue_config.test_service_account_gets_project_defaults_onlyfails without this change:With it, the integration issue, group-integration-details, GitHub and Jira suites pass:
224 passed.