Not able to add collection A11 to CRC1280
All relationship creation from the import seems to have failed.
Tried adding A11 to collection CRC 1280 from dashboard
web_1 | I, [2023-12-12T12:50:48.877305 #26] INFO -- : [6124996a-ac0e-40a9-9a1f-625b5b580780] Started POST "/dashboard/collections/cf95jb56k/within?locale=en" for 122.171.17.31 at 2023-12-12 12:50:48 +0000
web_1 | I, [2023-12-12T12:50:48.879770 #26] INFO -- : [6124996a-ac0e-40a9-9a1f-625b5b580780] Processing by Hyrax::Dashboard::NestCollectionsController#create_relationship_within as */*
web_1 | I, [2023-12-12T12:50:48.879885 #26] INFO -- : [6124996a-ac0e-40a9-9a1f-625b5b580780] Parameters: {"parent_id"=>"jm214p131", "source"=>"my", "locale"=>"en", "child_id"=>"cf95jb56k"}
web_1 | I, [2023-12-12T12:50:49.880927 #26] INFO -- : [6124996a-ac0e-40a9-9a1f-625b5b580780] Completed 500 Internal Server Error in 1001ms (ActiveRecord: 2.8ms)
web_1 | F, [2023-12-12T12:50:49.881777 #26] FATAL -- : [6124996a-ac0e-40a9-9a1f-625b5b580780]
web_1 | F, [2023-12-12T12:50:49.881927 #26] FATAL -- : [6124996a-ac0e-40a9-9a1f-625b5b580780] NoMethodError (undefined method `for' for #<Class:0x00007fa9b6f5aca0>
web_1 | Did you mean? from):
web_1 | F, [2023-12-12T12:50:49.881955 #26] FATAL -- : [6124996a-ac0e-40a9-9a1f-625b5b580780]
web_1 | F, [2023-12-12T12:50:49.881975 #26] FATAL -- : [6124996a-ac0e-40a9-9a1f-625b5b580780] app/services/hyrax/collections/nested_collection_query_service.rb:221:in `nestable?'
web_1 | [6124996a-ac0e-40a9-9a1f-625b5b580780] app/services/hyrax/collections/nested_collection_query_service.rb:55:in `available_parent_collections'
web_1 | [6124996a-ac0e-40a9-9a1f-625b5b580780] app/services/hyrax/collections/nested_collection_query_service.rb:142:in `parent_and_child_can_nest?'
web_1 | [6124996a-ac0e-40a9-9a1f-625b5b580780] app/controllers/hyrax/dashboard/nest_collections_controller.rb:17:in `create_relationship_within'
Seems to point to the line https://gitlab.ruhr-uni-bochum.de/researchdata/rdms/-/blob/develop/hyrax/app/services/hyrax/collections/nested_collection_query_service.rb?ref_type=heads#L221
Edited by Anusha Ranganathan