Skip to content

Commit

Permalink
collection needs to be persisted to have an id
Browse files Browse the repository at this point in the history
Setting the relationship of nested collections through Valkyrie resources in the CollectionMemberService requires that the parent collection have an id assigned to be able to store the id in the child.  The previous approach through AF took care of establishing the relationship.
  • Loading branch information
elrayle committed Aug 17, 2021
1 parent 8e296e9 commit 37fd5ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/models/concerns/hyrax/collection_nesting_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def after_save
end

let(:user) { create(:user) }
let!(:collection) { build(:collection_lw, collection_type_settings: [:nestable]) }
let!(:collection) { create(:collection_lw, collection_type_settings: [:nestable]) }
let!(:child_collection) { create(:collection_lw, collection_type_settings: [:nestable]) }
let(:extent) { Hyrax::Adapters::NestingIndexAdapter::FULL_REINDEX }

Expand Down

0 comments on commit 37fd5ae

Please sign in to comment.