Annotation importer create annotation set even if there are no annotations for an item
|Reported by:||Nicklas Nordborg||Owned by:||everyone|
Don't know how long this has been around. Discovered it while testing the BASE 3.2 release and have verified that the issue also exists in 3.1.
How to reproduce:
- Create 2 samples with different names and one annotation type. It doesn't matter what kind of annotation.
- Create a text file with two columns: sample name and annotation value. Add one line for each sample and enter the names in the name column. For one of the samples, enter a value in the annotation column, but leave the other one empty.
- Import the annotation with the annotation importer. IT should report that 1 sample has been annotated with 1 value.
- Check the
BioMaterialstable in the database. Both samples have a value in the
annotationset_idcolumn, but only one of them actually have a real entry in the
The annotation importer should not create an annotation set if there is no annotation value.