diff --git a/Gemfile b/Gemfile index 670a939b0..c74627ada 100644 --- a/Gemfile +++ b/Gemfile @@ -84,7 +84,7 @@ gem 'dor-workflow-client' gem 'reform', '~> 2.5.0' gem 'reform-rails' gem 'rubyzip', '~> 2.3' -gem 'sdr-client', '~> 2.14' +gem 'sdr-client', github: 'sul-dlss/sdr-client', branch: 'allow-collection-deposits' # '~> 2.14' gem 'sidekiq', '~> 7.0' gem 'sneakers', '~> 2.11' # rabbitMQ background processing gem 'state_machines-activerecord' diff --git a/Gemfile.lock b/Gemfile.lock index 1db0fa7bc..95eed5a40 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,3 +1,17 @@ +GIT + remote: https://github.com/sul-dlss/sdr-client.git + revision: e2de5260f0f7ddcb6f57e34121d83ef1b2689433 + branch: allow-collection-deposits + specs: + sdr-client (2.15.0) + activesupport + cocina-models (~> 0.97.0) + config + dry-monads + faraday (>= 0.16) + launchy + zeitwerk + GEM remote: https://rubygems.org/ specs: @@ -544,14 +558,6 @@ GEM ruby-next-core (1.0.3) ruby-progressbar (1.13.0) rubyzip (2.3.2) - sdr-client (2.15.0) - activesupport - cocina-models (~> 0.97.0) - config - dry-monads - faraday (>= 0.16) - launchy - zeitwerk selenium-webdriver (4.21.1) base64 (~> 0.2) rexml (~> 3.2, >= 3.2.5) @@ -729,7 +735,7 @@ DEPENDENCIES rubocop-rails rubocop-rspec rubyzip (~> 2.3) - sdr-client (~> 2.14) + sdr-client! selenium-webdriver sidekiq (~> 7.0) simplecov diff --git a/app/jobs/deposit_job.rb b/app/jobs/deposit_job.rb index c36c3f1ee..8f59f48a3 100644 --- a/app/jobs/deposit_job.rb +++ b/app/jobs/deposit_job.rb @@ -18,6 +18,9 @@ def perform(work_version) case request_dro when Cocina::Models::RequestDRO + Rails.logger.info("WorkVersion (#{work_version.id}) staged files: #{work_version.staged_files}") + Rails.logger.info("WorkVersion (#{work_version.id}) staged local files: #{work_version.staged_local_files}") + Rails.logger.info("WorkVersion (#{work_version.id}) preserved files: #{work_version.preserved_files}") SdrClient::RedesignedClient.deposit_model( accession: true, assign_doi: work_version.work.assign_doi?,