sgn icon indicating copy to clipboard operation
sgn copied to clipboard

Multi-Trial Upload: fails with location codes

Open dwaring87 opened this issue 1 year ago • 1 comments

Expected Behavior

This earlier PR added the ability to use the location abbreviation/code instead of the full name for the location in the multi-trial upload.

The upload now silently fails (says the trials were added successfully but are not added to the database) if one or more trials use the location abbreviation/code in the location column. The upload plugin correctly validates the location code, but the additional location check in the upload_multiple_trial_design.pl script fails.

It might be a good idea to remove the location check in the perl script, since it's already being done by the plugin validation.

For Bugs:

Environment

Steps to Reproduce

dwaring87 avatar Sep 27 '24 14:09 dwaring87

The upload plugin is correctly replacing the location codes with the correct location name and returning that in the parsed data. However, the perl script is re-reading the original file and not using the parsed data from the plugin.

dwaring87 avatar Sep 30 '24 13:09 dwaring87