Commit e7f44e9
fix: address PR review — narrow catch scope, document cache assumption
1. Narrow try/catch in resolveProjectSearch to only wrap resolveFromDsn().
Previously getIssueByShortId errors (e.g. 404) were silently caught,
causing a fallback to findProjectsBySlug which would duplicate the
expensive short ID resolution call before failing with the same error.
2. Add comment explaining why the org_regions cache is expected to be
complete when findProjectsBySlug runs: the project-search format's
short suffix only comes from `sentry issue list` output, which
already called listOrganizations() and populated all orgs.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 2c88c9c commit e7f44e9
2 files changed
Lines changed: 16 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
159 | 162 | | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
| 163 | + | |
169 | 164 | | |
170 | 165 | | |
171 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
172 | 175 | | |
173 | 176 | | |
174 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
213 | 217 | | |
214 | 218 | | |
215 | 219 | | |
| |||
0 commit comments