diff --git a/app/models/batch_process.rb b/app/models/batch_process.rb index 165739e6a..9049dec6f 100644 --- a/app/models/batch_process.rb +++ b/app/models/batch_process.rb @@ -514,12 +514,13 @@ def sync_from_preservica # SYNC IMAGES FROM PRESERVICA def sync_images_preservica(local_children_hash, preservica_children_hash, parent_object) - if local_children_hash != preservica_children_hash - setup_for_background_jobs(parent_object, parent_object.source_name) - parent_object.sync_from_preservica(local_children_hash, preservica_children_hash) - else - batch_processing_event("Child object count and order is the same. No update needed.", "Skipped Row") - end + # always update + # if local_children_hash != preservica_children_hash + setup_for_background_jobs(parent_object, parent_object.source_name) + parent_object.sync_from_preservica(local_children_hash, preservica_children_hash) + # else + # batch_processing_event("Child object count and order is the same. No update needed.", "Skipped Row") + # end end # rubocop:disable Metrics/MethodLength diff --git a/spec/models/preservica/preservica_sync_spec.rb b/spec/models/preservica/preservica_sync_spec.rb index 7f8a9e915..1dd5dac51 100644 --- a/spec/models/preservica/preservica_sync_spec.rb +++ b/spec/models/preservica/preservica_sync_spec.rb @@ -123,7 +123,8 @@ File.delete("spec/fixtures/images/access_masters/00/06/20/00/00/00/200000006.tif") if File.exist?("spec/fixtures/images/access_masters/00/06/20/00/00/00/200000006.tif") end - it 'can recognize when child object count and order is the same' do + # always update + xit 'can recognize when child object count and order is the same' do File.delete("spec/fixtures/images/access_masters/00/01/20/00/00/00/200000001.tif") if File.exist?("spec/fixtures/images/access_masters/00/01/20/00/00/00/200000001.tif") File.delete("spec/fixtures/images/access_masters/00/02/20/00/00/00/200000002.tif") if File.exist?("spec/fixtures/images/access_masters/00/02/20/00/00/00/200000002.tif") File.delete("spec/fixtures/images/access_masters/00/03/20/00/00/00/200000003.tif") if File.exist?("spec/fixtures/images/access_masters/00/03/20/00/00/00/200000003.tif")