emory-libraries / dlp-selfdeposit

0 stars 0 forks source link

BUGS: Odd Behaviors After Creating Objects Using Pair-Tree'd Storage #408

Open bwatson78 opened 1 month ago

bwatson78 commented 1 month ago

undefined method `to_model' for nil:NilClass

Extracted source (around line #23):

21 22 23 24 25 26

    class: 'btn btn-primary'
  ) %>
  <%= link_to t('.cancel'), parent_path(@parent), class: 'btn btn-link' %>
</div>

<% end %>

Trace of template inclusion: #<ActionView::Template bundle/ruby/3.2.0/bundler/gems/hyrax-59a42adfd57e/app/views/hyrax/file_sets/edit.html.erb locals=[]>

Rails.root: /app Application Trace | Framework Trace | Full Trace actionpack (6.1.7.8) lib/action_dispatch/routing/polymorphic_routes.rb:314:in handle_list' actionpack (6.1.7.8) lib/action_dispatch/routing/polymorphic_routes.rb:218:inpolymorphic_method' actionpack (6.1.7.8) lib/action_dispatch/routing/polymorphic_routes.rb:139:in polymorphic_path' hyrax (59a42adfd57e) app/helpers/hyrax/file_set_helper.rb:20:inparent_path' app/views/hyrax/file_sets/_form.html.erb:23 actionview (6.1.7.8) lib/action_view/helpers/capture_helper.rb:45:in block in capture' actionview (6.1.7.8) lib/action_view/helpers/capture_helper.rb:209:inwith_output_buffer' actionview (6.1.7.8) lib/action_view/helpers/capture_helper.rb:45:in capture' actionview (6.1.7.8) lib/action_view/helpers/form_helper.rb:450:inform_for' simple_form (5.1.0) lib/simple_form/action_view_extensions/form_helper.rb:27:in block in simple_form_for' simple_form (5.1.0) lib/simple_form/action_view_extensions/form_helper.rb:46:inwith_simple_form_field_error_proc' simple_form (5.1.0) lib/simple_form/action_view_extensions/form_helper.rb:26:in simple_form_for' app/views/hyrax/file_sets/_form.html.erb:1 actionview (6.1.7.8) lib/action_view/base.rb:247:inpublic_send' actionview (6.1.7.8) lib/action_view/base.rb:247:in _run' actionview (6.1.7.8) lib/action_view/template.rb:154:inblock in render' activesupport (6.1.7.8) lib/active_support/notifications.rb:205:in instrument' actionview (6.1.7.8) lib/action_view/template.rb:345:ininstrument_render_template' actionview (6.1.7.8) lib/action_view/template.rb:152:in render' xray-rails (f121814718c9) lib/xray/engine.rb:27:inrender_with_xray' actionview (6.1.7.8) lib/action_view/renderer/partial_renderer.rb:285:in block in render_partial_template' activesupport (6.1.7.8) lib/active_support/notifications.rb:203:inblock in instrument' activesupport (6.1.7.8) lib/active_support/notifications/instrumenter.rb:24:in instrument' activesupport (6.1.7.8) lib/active_support/notifications.rb:203:ininstrument' actionview (6.1.7.8) lib/action_view/renderer/partial_renderer.rb:280:in render_partial_template' actionview (6.1.7.8) lib/action_view/renderer/partial_renderer.rb:271:inrender' actionview (6.1.7.8) lib/action_view/renderer/renderer.rb:81:in render_partial_to_object' actionview (6.1.7.8) lib/action_view/renderer/renderer.rb:53:inrender_partial' actionview (6.1.7.8) lib/action_view/helpers/rendering_helper.rb:45:in `render' hyrax (59a42adfd57e) app/views/hyrax/file_sets/edit.html.erb:34

bwatson78 commented 1 month ago

The Attempting to edit a FileSet produces this error has been sent to Samvera as a bug: https://github.com/samvera/hyrax/issues/6863

bwatson78 commented 1 month ago

Just confirmed that the Attempting to save banner image produces the following error: behavior is appearing in OE24. Extracting this out to separate bug ticket.

bwatson78 commented 1 month ago

Going through the collection objects after each visibility change, I see that the SolrDocument associated to the Fedora object takes in the correct visibility, but the new desired visibility never persists to the ACL associated to the Publication. Since this behavior isn't present in our non-pair-tree'd setup, I'm reporting this as a bug to Hyrax.

bwatson78 commented 1 month ago

The bug associated to Attempting to edit and save a work results in this error: is the only issue I could easily fix. that bug fix is included in the adds_pair_tree_to_storage branch.

bwatson78 commented 1 month ago

The Collection edit form doesn't reflect correct Discovery visibility. issue has been reported to Hyrax via https://github.com/samvera/hyrax/issues/6864