Skip to content
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

Problem: Cannot automate partial or metadata reingest via API usage #1145

Closed
ross-spencer opened this issue Jun 18, 2018 · 2 comments
Closed

Comments

@ross-spencer
Copy link
Contributor

We can see when a transfer is sitting at Ingest waiting to go, having initiated it via reingest in the storage service API:

{"message": "Fetched units successfully.", "results": [{"microservice": "Approve AIP reingest", "sip_name": "rein_3", "sip_directory": "rein_3-b66caa3e-e32c-4f8e-8352-eb6153c70699", "sip_uuid": "b66caa3e-e32c-4f8e-8352-eb6153c70699"}]}r

But it seems that there is no way to automate the approval of this request where we might have automated this work via a script along the lines of: artefactual/automation-tools#58

As a user making use of the AM/SS API to automate work, it may be useful to at the least be able to do this, where it can then be fully automated depending on the processing config used.

@ross-spencer
Copy link
Contributor Author

NB would it be difficult to write an abstraction for the 'Get User choice ...' task types so that an API endpoint could be configured to send a generic start signal to initiate any particular user-choice? - I guess a complication is where there is an actual 'choice' not just an approve, where the endpoint might also want to be capable to providing the options, and then enabling a user to send one back for Archivematica to proceed.

@ross-spencer
Copy link
Contributor Author

Okay, so having learned a little more about Archivematica and with the help of @sromkey I can see that this can be achieved using the RPC client available with devtools here: https://github.com/artefactual/archivematica-devtools

I have recorded an asciinema video to show how this would work for partial re-ingest: https://asciinema.org/a/195109

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant