-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why does the transfer-object robot verify that versionMetadata exists? #348
Comments
A bag can be valid without a versionMetadata.xml so if you have to have a versionMetadata.xml then you have to check for that file specifically. If you don't have to have a versionMetadata.xml (or any other specific file within the |
@andrewjbtw I agree, but we already check for it here: https://github.com/sul-dlss/dor-services-app/blob/2ac9d78e999eb9a738a8c887d0b6e2f0ce726730/app/services/sdr_ingest_service.rb#L129 |
Is there an action on this ticket? |
I think we want to figure out why versionMetadata.xml is the target and if we can switch it to be something else, because we are probably not going to generate versionMetadata.xml in the future. |
here's what i found when looking into this yesterday:
|
@jcoyne - are we still generating versionMetadata.xml? What should we use instead? can we use the cocina json file? Or ??? |
Yes, we are still generating versionMetadata.xml, but mostly because we have this check. I think switching the check to look for |
https://github.com/sul-dlss/preservation_robots/blob/main/lib/robots/sdr_repo/preservation_ingest/transfer_object.rb#L33
I don't think this is necessary. We already verify the bag in dor-services-app before kicking off the workflow:
https://github.com/sul-dlss/dor-services-app/blob/2ac9d78e999eb9a738a8c887d0b6e2f0ce726730/app/jobs/preserve_job.rb#L23-L27
https://github.com/sul-dlss/dor-services-app/blob/2ac9d78e999eb9a738a8c887d0b6e2f0ce726730/app/services/sdr_ingest_service.rb#L39
Let's try switching to use contentMetadata.xml instead.
The text was updated successfully, but these errors were encountered: