fix(seer settings): Fallback to code mappings if seer preferences don't exist#104795
fix(seer settings): Fallback to code mappings if seer preferences don't exist#104795Mihir-Mavalankar merged 6 commits intomasterfrom
Conversation
roaga
left a comment
There was a problem hiding this comment.
what are you doing in case there is no existing_pref in the first place?
We will set the preferences with repositories set to []. Assuming code mapping does not exist too. |
isn't the whole point of the discussion to fallback to code mappings in this case too? |
Yes we are falling back. That's this PR. I am calling get_autofix_repos_from_project_code_mappings here as a fallback. |
but you're only doing it if there is an existing pref and the repos are empty The case that matters to us is instead if there is no existing pref at all |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #104795 +/- ##
=========================================
Coverage 80.47% 80.48%
=========================================
Files 9363 9363
Lines 401849 401986 +137
Branches 25833 25833
=========================================
+ Hits 323389 323524 +135
- Misses 78018 78020 +2
Partials 442 442 |
roaga
left a comment
There was a problem hiding this comment.
a test might be nice as this gets more complicated
PR Details