Skip to content

"Add" dataset window - conformity check of uploaded samples  #49

@marcomass

Description

@marcomass

During data upload check sample consistency vs. dataset schema; complete loading only if all lines of all samples of the uploaded dataset are compliant, whereas stop upload at the first line not compliant, and report the error, the line and sample where it occurs.

Rational and details as follows:
When a new dataset is created with samples that have less region attributes than those listed in the selected dataset schema, currently uploading ends with success, but then the processing of such dataset ends (successfully) with empty result!
If one or more of the uploaded samples include more attributes than those listed in the selected schema, currently the system manages this situation by loading only the values of a number of the first/leftmost sample attributes equal to the number of attributes listed in the schema; this is the only thing that can be done, but it is right only when the additional sample attributes are the last, i.e. the rightmost, ones in the sample.
Check correctness of selected schema for the uploaded samples while creating the new dataset, and accordingly provide a message to the user (either if any of their lines contain less or more region than expected), and stop loading, so that to avoid not conformant samples in the repository.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions