NGEET / ngt-archive

The NGEE-Tropics archive service supports the NGEE Tropics project. It is a place to upload datasets and metadata. Generated documentation (http://ngeet.github.io/ngt-archive/)
http://ngee-tropics.lbl.gov/
Other
8 stars 3 forks source link

Default DOE Contract Number Transfer #427

Closed emilyarobles closed 4 months ago

emilyarobles commented 4 months ago

The DOE Funding Contract Number field is now being transferring to ESS-DIVE #419. When there is no contract number in the metadata, "None" is sent and causes the below error on Sandbox:

{"detail": "One or more fields raised validation errors.", "errors": ["award None is not valid under any of the given schemas"]}

When transferring metadata to ESS-DIVE, the contract number field should default to the LBNL contract number if the field is left blank. Text within the dataset submission form should be added to notify users of this, similar to the additional information included underneath the Dataset Funding organization(s) field - screenshot below.

Screenshot 2024-05-23 at 10 33 41 AM.