sul-dlss / dor-services-app

A Rails application exposing Digital Object Registry functions as a RESTful HTTP API
https://sul-dlss.github.io/dor-services-app/
Other
3 stars 2 forks source link

Replace existing shelving service with WARC-specific shelving service #5072

Open justinlittman opened 1 month ago

justinlittman commented 1 month ago

With the new publish-shelve API, the only files that need to be shelved are WARC files to the web archive stacks. The existing logic for this (ShelvingService) is for general shelving and involves a complicated comparison with metadata from preservation.

For the current state of shelving, see https://github.com/sul-dlss/dor-services-app/blob/main/app/jobs/shelve_job.rb.

The existing shelving service should be replaced with a WARC-specific shelving service that for every file that is both in the cocina structural and in the workspace, copies the file to the web archive stacks.

For additional context, see #5046.

Please mark the PR as HOLD, as it is blocked by enabling the new publish-shelve API in production.