findAnnotations can return {id: null} #2829
Labels
No labels
backend
critical
defect
duplicate
enhancement
fixed
frontend
general
invalid
major
minor
normal
oxjs
pandora_client
python-ox
task
trivial
wontfix
worksforme
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: 0x2620/pandora#2829
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Annotation.save
commits the new annotation with nullpublic_id
, then fills it in with a separate commit. If there's a concurrentfindAnnotations
request which matches the annotation, it can be returned with{id: null}
– a bit unfortunate.Patch to follow to make
Annotation.public_id
non-nullable, and remove this window where it is null. (I haven't tested theItem.merge_with
path – I've only tested theaddAnnotation
/findAnnotation
path via the HTTP API.)Attachment 0001-Make-Annotation.public_id-non-NULLable-fixes-2829.patch (39865 bytes) added
In [pandora,5023]changeset:"pandora,5023":