Closed amoeba closed 4 years ago
@laurenwalker could you have a look at this? If only prov is being updated, no models are updated, just the resource map. Does the DataPackage.saveProv() function need to mark all package models so that they don't get updated, according to this recent update: https://github.com/NCEAS/metacatui/blame/0eddbf197708ddff08396a06e7db0ae93eb7a3a5/src/js/collections/DataPackage.js#L1110-L1115
I was doing testing for something else and ran into this:
Steps:
You'll see Submit change to "Saving..." and stay there indefinitely. In your Network console you'll see three PUT calls that error out with HTTP 400s that look like calls to
updateSystemMetadata
. This is a bit weird as I wouldn't expect adding PROV to callupdateSystemMetadata
at all.Updating PROV eventually triggers a save call on the DataPackage collection and the logic causing the failing calls happens in:
https://github.com/NCEAS/metacatui/blob/0eddbf197708ddff08396a06e7db0ae93eb7a3a5/src/js/collections/DataPackage.js#L1110-L1115
The error response might be diagnostically useful. Each call returns with:
Chrome 80.0.3987.87 MetacatUI versions: 2.10.0 and 2.10-dev (can reproduce on test.arcticdata.io)