Commit f7f201a
fix(code-mappings): Add source_root to get_or_create/update_or_create lookups
Update auto-source-code-config callers to include source_root in
their lookup keys, matching the new unique constraint on
(project, stack_root, source_root). Without this, these calls
would raise MultipleObjectsReturned once multiple mappings share
the same stack_root.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 2fa0c9d commit f7f201a
File tree
3 files changed
+20
-6
lines changed- src/sentry/issues/auto_source_code_config
- tests/sentry/issues/auto_source_code_config
3 files changed
+20
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
| 351 | + | |
351 | 352 | | |
352 | 353 | | |
353 | 354 | | |
354 | 355 | | |
355 | 356 | | |
356 | | - | |
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
241 | 242 | | |
242 | 243 | | |
243 | 244 | | |
244 | 245 | | |
245 | 246 | | |
246 | | - | |
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| |||
Lines changed: 18 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
181 | 183 | | |
182 | 184 | | |
183 | | - | |
184 | 185 | | |
185 | 186 | | |
186 | 187 | | |
| |||
939 | 940 | | |
940 | 941 | | |
941 | 942 | | |
942 | | - | |
943 | | - | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
944 | 946 | | |
945 | 947 | | |
946 | 948 | | |
947 | 949 | | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
948 | 953 | | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
949 | 963 | | |
950 | 964 | | |
951 | 965 | | |
| |||
0 commit comments