fix(seer): Bill seat-based autofix based on Seer project preferences instead of code mappings and tuning#113700
Merged
Merged
Conversation
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
srest2021
marked this pull request as ready for review
April 22, 2026 17:45
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
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_tuningprojectoption. 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 inshould_increment_contributor_seat(inc-1590).