Skip to content

Complete deposits locally

Johnathan Martin edited this page Jun 28, 2023 · 5 revisions

Completing a deposit of a work or a collection in H2 requires SDR integration, which we don't have when doing development locally. (We could add sdr-api in docker-compose.yml, but then we need dor-services-app, workflow-service, etc. etc., so it would very quickly become heavier than we want.) It's still useful to simulate completion of deposits. Here's how to do that:

$ bin/rake complete_deposits

That's it! This will complete the deposit of every Work and Collection awaiting deposit, and will output the druids used, e.g.:

$ bin/rake complete_deposits
Marked Collection id=2 as deposited with druid:xk479pg3436
Marked Work id=1 as deposited with druid:gq113dw8332