Skip to content

fix(autofix): Ignore default-valued options when checking if preference is configured#113064

Closed
srest2021 wants to merge 1 commit intomasterfrom
srest2021/fix-has-configured-options
Closed

fix(autofix): Ignore default-valued options when checking if preference is configured#113064
srest2021 wants to merge 1 commit intomasterfrom
srest2021/fix-has-configured-options

Conversation

@srest2021
Copy link
Copy Markdown
Member

@srest2021 srest2021 commented Apr 15, 2026

Projects with autofix_automation_tuning explicitly set to its default ("OFF") — e.g. by set_default_project_autofix_automation_tuning at project creation — were being treated as having configured preferences. This caused read_preference_from_sentry_db to return a SeerProjectPreference with empty repositories instead of None, skipping the fallback path that populates repos from code mappings in trigger_autofix.

Compare option values against their registered defaults so only meaningfully configured options count.

… check

Projects with autofix_automation_tuning explicitly set to its default
(OFF) — e.g. by set_default_project_autofix_automation_tuning at
project creation — were incorrectly treated as having configured
preferences. This caused read_preference_from_sentry_db to return a
SeerProjectPreference with empty repositories instead of None,
skipping the fallback path that populates repos from code mappings.

Compare option values against their registered defaults so only
meaningfully configured options count.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 15, 2026
@srest2021 srest2021 closed this Apr 16, 2026
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