Skip to content

fix: strip server-assigned ids before re-uploading annotations - #24

Merged
FelixAbrahamsson merged 1 commit into
masterfrom
fix-upload-strip-ids
Jul 14, 2026
Merged

fix: strip server-assigned ids before re-uploading annotations#24
FelixAbrahamsson merged 1 commit into
masterfrom
fix-upload-strip-ids

Conversation

@FelixAbrahamsson

Copy link
Copy Markdown
Contributor

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.

`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>
@FelixAbrahamsson
FelixAbrahamsson merged commit e6352d5 into master Jul 14, 2026
1 check passed
@FelixAbrahamsson
FelixAbrahamsson deleted the fix-upload-strip-ids branch July 14, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant