NCEAS / morpho

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

Local delete doesn't delete the file storing the system metadata #1012

Closed mbjones closed 6 years ago

mbjones commented 6 years ago

Author Name: Jing Tao (Jing Tao) Original Redmine Issue: 5861, https://projects.ecoinformatics.org/ecoinfo/issues/5861 Original Date: 2013-02-12 Original Assignee: Jing Tao


The delete of local data package does delete the package itself. But it doesn't delete the stored system metadata file.

mbjones commented 6 years ago

Original Redmine Comment Author Name: ben leinfelder (ben leinfelder) Original Date: 2013-02-13T06:42:05Z


I think it's safe to remove the SystemMetadata file as well. We should not, however, delete any referenced data files since they might be included in other packages (I know making a duplicate of an EML package will preserve the reference to the same data).

mbjones commented 6 years ago

Original Redmine Comment Author Name: Jing Tao (Jing Tao) Original Date: 2013-02-14T22:22:58Z


yeah. we should keep the data file. Actually, the delete doesn't remove the data file.

However, I think we should remove the ore document and its system metadata because the metadata (eml) in the ore doesn't exist any more.

By the way, i believe the only way we can figure out the id of an ore document is "resourceMap_"+metadata id.

mbjones commented 6 years ago

Original Redmine Comment Author Name: Jing Tao (Jing Tao) Original Date: 2013-02-14T23:54:42Z


Now morpho will delete both the metadata (including the associated system metadata) and the ore document(including the associated system metadata) if it exists.

mbjones commented 6 years ago

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


Original Bugzilla ID was 5861