WildMeOrg / codex-frontend

The frontend for Codex, written in React with Material UI components. Codex is active and being used by the research community!
GNU General Public License v3.0
8 stars 17 forks source link

bulk import: lat/long submission error #573

Open TanyaStere42 opened 1 year ago

TanyaStere42 commented 1 year ago

Expected Behavior Successfully upload a bulk import as long as all the required fields are present for all encounters

Current Behavior

  1. bulk import with example data
  2. on submission of sightings, get this error: Cannot convert to float for decimalLatitude in Sighting 5 because sighting 5 does not contain decimal. this should not block submission because not a required field
example data mediaAssets decimalLatitude decimalLongitude year month day hour minutes sex species individualID locationID TimeSpecificity Life stage
harborseal1.jpg 4.33 74.22 2014 6 10     male Phoca vitulina SEAL-011 US Pacific day pup
harborseal2.jpg 5.22 71.21 2014 7 2       Phoca vitulina US Pacific day adult
harborseal3.jpg 6.11 70.12 2015 7 15     female Phoca vitulina US Pacific day adult
harborseal4.jpg 7.02 69.89 2017 4 2 12 34   Phoca vitulina US Pacific hour adult
harborseal5.jpg   2022 5         Phoca vitulina US Pacific year adult
naknomum commented 1 year ago

notes for slack, for prosperity:

  1. bad data go in
  2. flat file says "this is bad and we won't process it right"
  3. user says "try anyway"
  4. we do not upload those fields (with invalid data) but the upload works - invalid fields are just treated as null

(4) will still fail if it is required data that is invalid