Skip to content

Commit

Permalink
Do not spawn relationship jobs for FileSets (#547)
Browse files Browse the repository at this point in the history
don't spawn relationship jobs for FileSets, their parent work is set up in the ObjectFactory
  • Loading branch information
bkiahstroud authored Jun 8, 2022
1 parent df0c5d0 commit fe2611e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/models/concerns/bulkrax/file_set_entry_behavior.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,13 @@ def validate_presence_of_parent!

raise StandardError, 'File set must be related to at least one work'
end

def parent_jobs
false # FileSet relationships are handled in ObjectFactory#create_file_set
end

def child_jobs
raise ::StandardError, 'A FileSet cannot be a parent of a Collection, Work, or other FileSet'
end
end
end

0 comments on commit fe2611e

Please sign in to comment.