NCEAS / morpho

Morpho metadata editor
GNU General Public License v2.0
3 stars 1 forks source link

Call CN.setReplicationPolicy() when editing replication policy #986

Closed mbjones closed 6 years ago

mbjones commented 6 years ago

Author Name: ben leinfelder (ben leinfelder) Original Redmine Issue: 5825, https://projects.ecoinformatics.org/ecoinfo/issues/5825 Original Date: 2013-01-25 Original Assignee: ben leinfelder


This should act the same as the access policy edits. For network packages, we call the CN.setReplicationPolicy() and only save the SM locally if that was successful. Otherwise we tell the user to wait for the CN to synch with the MN. If the package is local-only, then we can just save the SM locally.

mbjones commented 6 years ago

Original Redmine Comment Author Name: ben leinfelder (ben leinfelder) Original Date: 2013-01-29T00:55:59Z


Now calling the CN for changes to the EML ReplicationPolicy. Note that Morpho calls the CN first to retrieve the latest serialVersion of the SM in order to make a successful call, but it does not do any other sort of merging of the two versions (local/cn) of SystemMetadata.ReplicationPolicy.

mbjones commented 6 years ago

Original Redmine Comment Author Name: ben leinfelder (ben leinfelder) Original Date: 2013-01-29T01:13:00Z


Now doing the same for data objects.

mbjones commented 6 years ago

Original Redmine Comment Author Name: Redmine Admin (Redmine Admin) Original Date: 2013-03-27T21:31:48Z


Original Bugzilla ID was 5825