The upload function currently always sets the phenotype.cvalue_id = null. In the case of scales, this should be set to the cvterm_id matching the value.
For scales where the data uploaded doesn't match the scale (e.g. scale of 1-small, 2-medium, 3-large but the data has 1.5 and 2.5) the upload form should emit and error and block upload.
The upload function currently always sets the
phenotype.cvalue_id = null
. In the case of scales, this should be set to the cvterm_id matching the value.