fcrepo-exts / migration-utils

An in-development framework for managing data migrations from previous versions to 4.x.
Apache License 2.0
13 stars 29 forks source link

Check for existing object before migrating #153

Closed bcail closed 3 years ago

bcail commented 3 years ago

Check for existing object before migrating


JIRA Ticket: (https://jira.lyrasis.org/browse/FCREPO-3643)

What does this Pull Request do?

When migrating an object, if the object already exists in the OCFL repo, throw an exception instead of migrating content on top of what's already there.

How should this be tested?

There are a couple automated tests, but to test manually, run the migration over the same content twice - it should fail the second time because the first object was already migrated.

Additional Notes:

Documentation will need to be checked/updated.

Interested parties

@fcrepo/committers

bcail commented 3 years ago

thanks, fixed