pulibrary / figgy

Valkyrie-based digital repository backend.
Other
35 stars 4 forks source link

Add Logical Structure to CDL::Resource to enable structure manager. #4249

Open tpendragon opened 4 years ago

tpendragon commented 4 years ago

View full backtrace and more info at honeybadger.io

christinach commented 4 years ago

scanned_resources_controller.rb 24 structure(...) [PROJECT_ROOT]/app/resources/scanned_resources/scanned_resources_controller.rb:24:instructure'`

22 @change_set = ChangeSet.for(find_resource(params[:id]), change_set_param: change_set_param).prepopulate! 23 authorize! :structure, @change_set.resource 24 @logical_order = (Array(@change_set.logical_structure).first || Structure.new).decorate 25 members = Wayfinder.for(@change_set.resource).members_with_parents 26 @logical_order = WithProxyForObject.new(@logical_order, members)`