-
Notifications
You must be signed in to change notification settings - Fork 1
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
Enhancement: Add package name as configurable value to post-store AIP, AIC and DIP callbacks #978
Comments
Hi @timothyryanwalsh This is really starting to take shape. Have a look at the following for extending the Storage Service, and we're here to CR!!
We've a few more items to triage for |
Hi @ross-spencer - PR is submitted and ready for code review! |
I was looking up areas where documentation may or may not need to be updated with this enhancement. A by-product of which was following up with artefactual/archivematica-storage-service#502 to update all of our pip requirements, which may or may not be linked to this issue. Another by-product is I have documented my previous testing. I have also tested this feature, and from the notes in the attached gist I feel it's looking good. Should we test again closer to As for documentation, then this is related to: #947 where we might elect to expand on what is there with a worked example, e.g. given a configuration where perhaps you'd like JSON to consume: {
"PackageID": "<package_uuid>",
"PackageName": "<package_name>"
} You'd get JSON that looks like the following to consume: {
"PackageID": "fd6a3f60-1431-4ca2-b146-ca2a57f438c9",
"PackageName": "20123_New_transfer_002.001.124"
} Additional notes that may be useful to documentation are in the gist. |
I have confirmed that the feature is operating as expected in branch
The callbacks executed successfully with no observed side effects for all three event types. The Storage Service documentation has been updated with additional information about how to configure and use the post-store callbacks. See: artefactual/archivematica-storage-service-docs#35 FYI for @ross-spencer and others who may find this helpful: When running the Storage Service in Docker on Linux, setting the base URI for the callback to |
Please describe the problem you'd like to be solved
At Concordia University Library and in collaboration with EPrints Services and the community of EPrints users, we are currently working on an EPrints-Archivematica integration via an EPrints-Archivematica export plugin. This plugin will export newly added or modified eprints in an EPrints instance, along with their metadata and object checksums, in a package format that is optimized for Archivematica. We are planning to use Automation Tools to then pick up these packages and ingest them through an automated Archivematica pipeline.
We would like to send a notification back to EPrints following successful storage of the AIP which includes the resulting AIP UUID using the existing post-store AIP callback feature. In order for EPrints to write this UUID into the correct place in the EPrints database, the callback needs to include the EPrintsArchivematicaDatasetID (the primary key in the table in EPrints which keeps track of the exports created by the plugin).
Describe the solution you'd like to see implemented
After consultation with Sara and Ross, we think that the simplest and most generic solution is to include a new configurable
<package_name>
value to the URI/body of the post-store AIP/AIC/DIP callback. For the EPrints integration, we will then include the EPrintsArchivematicaDatasetID in the transfer name so that the resulting post-store callback contains both pieces of needed information.This solution should work with other originating systems as well, as any system could use its originating ID as a transfer name and then receive both that originating ID and the resulting AIP UUID in the post-store callback.
Describe alternatives you've considered
metadata.csv
oridentifiers.json
and then adding code to the Storage Service to be able to look up this value and include it in the post-store callback.Ingest status
endpoint to look up the package name. We'd prefer to avoid this option as it complicates integration from the perspective of the originating system (in this case, EPrints).Additional context
Relevant Issues:
Edit: Added link to relevant issue in EPrintsArchivematica repository
For Artefactual use:
Before you close this issue, you must check off the following:
The text was updated successfully, but these errors were encountered: