Currently, annotations with properties can only be imported if the annotation has an ID in the JSON file. Annotation IDs are not required for any other import functionality, so we should remove this requirement
Solution
When importing annotations, if an annotation does not have an ID, give it one with uuid.uuid4(). This works because we don't actually respect the ID that's assigned during import (to avoid clashes), it just needs to be a unique value per annotation
Changelog
Removed the requirement for annotation IDs to be present in imported JSON to successfully import properties
Problem
Currently, annotations with properties can only be imported if the annotation has an ID in the JSON file. Annotation IDs are not required for any other import functionality, so we should remove this requirement
Solution
When importing annotations, if an annotation does not have an ID, give it one with
uuid.uuid4()
. This works because we don't actually respect the ID that's assigned during import (to avoid clashes), it just needs to be a unique value per annotationChangelog
Removed the requirement for annotation IDs to be present in imported JSON to successfully import properties