fix(seer): Remove code mappings fallback from has_project_connected_repos#113509
Merged
fix(seer): Remove code mappings fallback from has_project_connected_repos#113509
Conversation
`has_project_connected_repos` now checks only Seer project preferences to determine whether a project has connected repos. The prior fallback to `get_autofix_repos_from_project_code_mappings` is removed — a project without prefs-configured repos is treated as unconnected.
…d_repos Remove tests covering the code-mapping fallback path and simplify the remaining tests to no longer mock `get_autofix_repos_from_project_code_mappings`.
JoshFerge
approved these changes
Apr 21, 2026
srest2021
added a commit
that referenced
this pull request
Apr 21, 2026
…isting org (#113582) Fixes CW-1182 Since we will bill by connected repos #113369, let's remove the code mappings fallback when configuring Seer for an existing org and there are no existing repos in the project preference. Ultimately we want to avoid bill shock by adding stuff to users' preferences that will get billed. Consistent with #113077 and #113509. [More context.](https://sentry.slack.com/archives/C0AAF0JD0GK/p1776284922120519)
3 tasks
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.
has_project_connected_reposnow checks only Seer project preferences to determine whether a project has connected repos.Consistent with #113077 (don't fall back to code mappings if it's our first autofix run) and #113369 (bill based on connected project repositories, instead of code mappings).