Commit e6352d5
fix: strip server-assigned ids before re-uploading annotations
`job.annotations()` returns existing annotations with their server-assigned
`id` fields. When those are re-submitted via `set_annotations` (a full-replace
PUT), CVAT rejects/mishandles them because it treats `id` as the identity of
an existing object. Strip `id` from tags, shapes, and tracks in
`JobAnnotations.request()` so the server creates them fresh.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 62cc3f7 commit e6352d5
1 file changed
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
87 | 93 | | |
88 | 94 | | |
89 | | - | |
90 | | - | |
91 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
92 | 104 | | |
93 | 105 | | |
0 commit comments