Skip to content

fix(seer): Bill seat-based autofix based on Seer project preferences instead of code mappings and tuning#113700

Merged
srest2021 merged 13 commits into
masterfrom
srest2021/AIML-2754-pt2
Apr 22, 2026
Merged

fix(seer): Bill seat-based autofix based on Seer project preferences instead of code mappings and tuning#113700
srest2021 merged 13 commits into
masterfrom
srest2021/AIML-2754-pt2

Conversation

@srest2021

@srest2021 srest2021 commented Apr 22, 2026

Copy link
Copy Markdown
Member

Fixes AIML-2754

Determine whether autofix is enabled for a repository (and whether this
contributor is billable) by checking Seer project preferences, instead
of code mappings plus the sentry:autofix_automation_tuning project
option. Autofix is enabled if any project has the given repository added
to its Seer preference.

Redo of #113369 as I forgot that the features.has("organizations:seat-based-seer-enabled", organization) check should always go last in should_increment_contributor_seat (inc-1590).

Determine whether autofix is enabled for a repository by checking
Seer project preferences instead of code mappings plus the
`sentry:autofix_automation_tuning` project option. Behind
`organizations:seer-project-settings-read-from-sentry`, read directly
from `SeerProjectRepository`; otherwise bulk-fetch preferences from
Seer and match the repository id, falling back to not incrementing on
`SeerApiError`.

Refs AIML-2754
@linear-code

linear-code Bot commented Apr 22, 2026

Copy link
Copy Markdown

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 22, 2026
@srest2021
srest2021 marked this pull request as ready for review April 22, 2026 17:45
@srest2021
srest2021 requested review from a team as code owners April 22, 2026 17:45

@chromy chromy left a comment

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.

lgtm

@srest2021
srest2021 merged commit 70ac6e4 into master Apr 22, 2026
64 checks passed
@srest2021
srest2021 deleted the srest2021/AIML-2754-pt2 branch April 22, 2026 17:54
@github-actions github-actions Bot locked and limited conversation to collaborators May 8, 2026
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.

2 participants