Commit 732b1bf
test(attachments): pin the both-dialects signed-URL readers (objectstack#3689) (#2913)
`GET /api/v1/storage/files/:fileId/url` answered a bare `{ url }` and now
answers the declared `{ success: true, data: { url } }` envelope
(objectstack#3689 — the success-path half of the #3675 error-path fix).
Both console readers of that route — `RecordAttachmentsPanel.handleDownload`
and `ApprovalsInboxPage.openAttachment` — already took either shape, which is
what lets the two repos land in any order. Nothing to fix, then; what was
missing is any statement that the tolerance is deliberate. So the panel's
download suite now drives the enveloped shape in its main case and the legacy
bare one in a dedicated case, mirroring how the same file already covers both
error dialects, and both readers say in a comment why they read two.
No behaviour change.
Co-authored-by: Claude <noreply@anthropic.com>1 parent 3c4d935 commit 732b1bf
3 files changed
Lines changed: 40 additions & 4 deletions
File tree
- apps/console/src/pages/system
- packages/app-shell/src/views
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
452 | 455 | | |
453 | 456 | | |
454 | 457 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
231 | 235 | | |
232 | 236 | | |
233 | 237 | | |
| |||
Lines changed: 33 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
100 | 102 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
105 | 107 | | |
106 | 108 | | |
107 | 109 | | |
| |||
190 | 192 | | |
191 | 193 | | |
192 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
193 | 222 | | |
0 commit comments