Commit c2d86a3
fix(autofix): Ignore default-valued options in has_configured_options 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>1 parent a16fcfa commit c2d86a3
File tree
2 files changed
+22
-1
lines changed- src/sentry/seer/autofix
- tests/sentry/seer/autofix
2 files changed
+22
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
750 | 750 | | |
751 | 751 | | |
752 | 752 | | |
753 | | - | |
| 753 | + | |
| 754 | + | |
754 | 755 | | |
755 | 756 | | |
756 | 757 | | |
| |||
797 | 798 | | |
798 | 799 | | |
799 | 800 | | |
| 801 | + | |
| 802 | + | |
800 | 803 | | |
801 | 804 | | |
802 | 805 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1342 | 1342 | | |
1343 | 1343 | | |
1344 | 1344 | | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
1345 | 1354 | | |
1346 | 1355 | | |
1347 | 1356 | | |
| |||
1539 | 1548 | | |
1540 | 1549 | | |
1541 | 1550 | | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
1542 | 1560 | | |
1543 | 1561 | | |
1544 | 1562 | | |
| |||
0 commit comments