Project

General

Profile

Actions

Task #7206

closed

Change the behavior to archive the older version of the resource map object when a new package is pushed to Metacat

Added by Jing Tao over 6 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
metacat
Target version:
Start date:
08/16/2017
Due date:
% Done:

0%

Estimated time:

Description

Do you know if Morpho is by default archiving the resource map when a new version of a data package is pushed to KNB?
I am asking because I realized that when I try to go back to previous versions of our SNAPP packages, it seems that all the previous resourceMaps were archived (thanks for @peter for helping me to understand that) restricting the access to previous versions to the EML only. Here as example: https://knb.ecoinformatics.org/#view/karakoenig.46.14 as the lateset and https://knb.ecoinformatics.org/#view/karakoenig.46.12 as a previously shared version with the PIs.

Actions #1

Updated by Jing Tao over 6 years ago

From Chris:
I’m pretty sure the behavior described here: (https://nceas.slack.com/archives/C0N49FM9V/p1502908030000459) isn’t what is intended. We’ve struggled with setting objects to be archived because the definition of what it means to be `archived` has changed slightly from pre-DataONE to post-DataONE. I think it would be worthwhile to review the code, and if appropriate, not calle `archive()` on content that truly isn’t being archived, but rather just set the `obsoletes` and `obsoletedBy` fields to maintain the version chain, which it should already do.

Actions #2

Updated by Jing Tao over 6 years ago

  • Status changed from New to Resolved

Change the code not to set archive to be true. But the obsoletedBy/obsoletes chains still are maintained.

Actions #3

Updated by Jing Tao over 6 years ago

  • Target version changed from 2.9.0 to 2.8.6
Actions

Also available in: Atom PDF