Commit d01fd09
committed
ref(night-shift): Add bulk_read_preferences unified helper
Extract the feature-flag dispatch into a single bulk_read_preferences()
helper in autofix/utils.py that returns dict[int, SeerProjectPreference | None]
regardless of whether preferences come from Sentry DB or the Seer API.
Simplify _get_eligible_projects in the night-shift cron to use it.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Agent transcript: https://claudescope.sentry.dev/share/rCNWD9ykr9zl5zpI-QmbkrWbXJLts9yV0ajkhGPjAsw1 parent 26e9896 commit d01fd09
2 files changed
+22
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
818 | 818 | | |
819 | 819 | | |
820 | 820 | | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
821 | 838 | | |
822 | 839 | | |
823 | 840 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 14 | + | |
18 | 15 | | |
19 | 16 | | |
20 | 17 | | |
| |||
182 | 179 | | |
183 | 180 | | |
184 | 181 | | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
| 182 | + | |
194 | 183 | | |
195 | 184 | | |
196 | 185 | | |
197 | | - | |
198 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
199 | 189 | | |
200 | 190 | | |
201 | 191 | | |
0 commit comments