NCEAS / metacatui

MetacatUI: A client-side web interface for DataONE data repositories
https://nceas.github.io/metacatui
Apache License 2.0
42 stars 27 forks source link

New version link does not show up #725

Open drkrynstrng opened 6 years ago

drkrynstrng commented 6 years ago

After updating a data package with provenance chains using dataone::uploadDataPackage, the new version link does not show up at the top of the page when trying to view the old resource map and it automatically directs to the new version. The function appears to be working correctly and the system metadata is also correct with respect to version chains.

A test example:

Original resource map: https://test.arcticdata.io/#view/resource_map_urn:uuid:c62c0697-5165-40be-a905-7d69bca75ad0

Updated resource map: https://test.arcticdata.io/#view/resource_map_urn:uuid:bcbfff40-5d6e-4f50-9e3a-3177aca3d3fe

Also note that the metadata PID in the General > Identifier field is incorrect.

Workflow: gh_issue_725.txt

jeanetteclark commented 6 years ago

~~I am seeing this on production as well: https://knb.ecoinformatics.org/#view/urn:uuid:186d41fc-1e38-4e7d-96da-3fcf558b2aba https://knb.ecoinformatics.org/#view/doi:10.5063/F1TD9VHH version chain is intact in system metadata, but the new version link doesn't show up.~~

sysmeta was incorrect, not sure how it got that way, but seems that is unrelated to the bug described above

The key thing here seems to be the presence of prov in the dataset. @drkrynstrng is going to post his workflow momentarily

drkrynstrng commented 6 years ago

See the attached script for the workflow: gh_issue_725.txt

jeanetteclark commented 6 years ago

also - let me know if this is not the right repo. I think this is a metacatUI issue but could be wrong

laurenwalker commented 6 years ago

Yep, this is a MetacatUI issue. The data package landing page should still render the obsoleted resource map if you navigate to the landing page via the obsoleted resource map id.

Thanks for the bug report Derek and Jeanette!