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.
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.
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.