Commit 687c731
committed
filer: drop dead INVALID_PARAMETER_VALUE branch (real conflicts use existing sentinels)
Verified against a real workspace by uploading varied content into pre-existing
paths of mismatched node types: every cross-type collision the server can
produce surfaces as either:
- 400 RESOURCE_ALREADY_EXISTS, or
- 409 ALREADY_EXISTS
both already caught by errors.Is(err, ErrResourceAlreadyExists) /
errors.Is(err, ErrAlreadyExists). The "400 INVALID_PARAMETER_VALUE with
'Requested node type [X] is different from the existing node type [Y]'"
shape was hypothesized in the original PR but does not occur in practice
on /workspace/import — the branch was dead code.
Replace the corresponding unit test with one that pins the actual cross-type
collision shape (409 ALREADY_EXISTS with "Node with name X already exists").
Co-authored-by: Isaac1 parent 1eec0f7 commit 687c731
2 files changed
Lines changed: 15 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
209 | 208 | | |
210 | 209 | | |
211 | 210 | | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
221 | 217 | | |
222 | 218 | | |
223 | 219 | | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | 220 | | |
231 | 221 | | |
232 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
191 | 195 | | |
192 | | - | |
193 | | - | |
194 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
195 | 199 | | |
196 | 200 | | |
197 | 201 | | |
198 | 202 | | |
199 | | - | |
| 203 | + | |
200 | 204 | | |
201 | 205 | | |
202 | 206 | | |
| |||
0 commit comments