uclibs / uc_drc

DRC migration planning and work
Other
0 stars 0 forks source link

Home page application error for recently uploaded #103

Closed crowesn closed 3 years ago

crowesn commented 3 years ago

Describe the bug Application error on home page, other pages unaffected. Something to do with the SolrDocument and AllinsonFlex. Bug is traced to here and here

To Reproduce

  1. Fresh build
  2. Login with admin and upload metadata profile /config/metadata_profiles/uc_drc.yml (or hyrax.yml)
  3. Create new work
  4. Navigate to home page

Expected behavior Home page should render without error. Recently uploaded documents should include entry for new work.

Screenshots

Completed 500 Internal Server Error in 72ms (ActiveRecord: 8.2ms)

ActionView::Template::Error (wrong number of arguments (given 1, expected 0)):
     8:           <% end %>
     9:         </h3>
    10:         <p class="recent-field">
    11:           <span class="recent-label"><%= t('hyrax.homepage.recently_uploaded.document.depositor_label') %>:</span> <%= link_to_profile recent_document.depositor(t('hyrax.homepage.recently_uploaded.document.depositor_missing')) %>
    12:         </p>
    13:         <p class="recent-field">
    14:           <span class="recent-label"><%= t('hyrax.homepage.recently_uploaded.document.keyword_label') %>:</span> <%= link_to_facet_list(recent_document.keyword, 'keyword', t('hyrax.homepage.recently_uploaded.document.keyword_missing')).html_safe %>

hyrax (2.8.0) app/models/concerns/hyrax/solr_document/metadata.rb:7:in `block in attribute'
hyrax (2.8.0) app/views/hyrax/homepage/_recent_document.html.erb:11:in `___sers_crowesn__rvm_gems_ruby_______gems_hyrax_______app_views_hyrax_homepage__recent_document_html_erb___2294893870035308258_617820'
actionview (5.2.4.4) lib/action_view/template.rb:159:in `block in render'
activesupport (5.2.4.4) lib/active_support/notifications.rb:170:in `instrument'
actionview (5.2.4.4) lib/action_view/template.rb:354:in `instrument_render_template'
actionview (5.2.4.4) lib/action_view/template.rb:157:in `render'
actionview (5.2.4.4) lib/action_view/renderer/partial_renderer.rb:441:in `block in collection_with_template'
actionview (5.2.4.4) lib/action_view/renderer/partial_renderer.rb:437:in `map'
actionview (5.2.4.4) lib/action_view/renderer/partial_renderer.rb:437:in `collection_with_template'
actionview (5.2.4.4) lib/action_view/renderer/partial_renderer.rb:327:in `block (2 levels) in render_collection'
actionview (5.2.4.4) lib/action_view/renderer/partial_renderer/collection_caching.rb:15:in `cache_collection_render'
actionview (5.2.4.4) lib/action_view/renderer/partial_renderer.rb:326:in `block in render_collection'
actionview (5.2.4.4) lib/action_view/renderer/abstract_renderer.rb:44:in `block in instrument'
activesupport (5.2.4.4) lib/active_support/notifications.rb:168:in `block in instrument'
activesupport (5.2.4.4) lib/active_support/notifications/instrumenter.rb:23:in `instrument'
activesupport (5.2.4.4) lib/active_support/notifications.rb:168:in `instrument'
actionview (5.2.4.4) lib/action_view/renderer/abstract_renderer.rb:43:in `instrument'
actionview (5.2.4.4) lib/action_view/renderer/partial_renderer.rb:319:in `render_collection'
actionview (5.2.4.4) lib/action_view/renderer/partial_renderer.rb:310:in `render'
actionview (5.2.4.4) lib/action_view/renderer/renderer.rb:49:in `render_partial'
actionview (5.2.4.4) lib/action_view/renderer/renderer.rb:23:in `render'
actionview (5.2.4.4) lib/action_view/helpers/rendering_helper.rb:33:in `render'
hyrax (2.8.0) app/views/hyrax/homepage/_recently_uploaded.html.erb:7:in `___sers_crowesn__rvm_gems_ruby_______gems_hyrax_______app_views_hyrax_homepage__recently_uploaded_html_erb__618599570000478444_617800'
actionview (5.2.4.4) lib/action_view/template.rb:159:in `block in render'
activesupport (5.2.4.4) lib/active_support/notifications.rb:170:in `instrument'
actionview (5.2.4.4) lib/action_view/template.rb:354:in `instrument_render_template'
actionview (5.2.4.4) lib/action_view/template.rb:157:in `render'
actionview (5.2.4.4) lib/action_view/renderer/partial_renderer.rb:344:in `block in render_partial'
actionview (5.2.4.4) lib/action_view/renderer/abstract_renderer.rb:44:in `block in instrument'
activesupport (5.2.4.4) lib/active_support/notifications.rb:168:in `block in instrument'
activesupport (5.2.4.4) lib/active_support/notifications/instrumenter.rb:23:in `instrument'
activesupport (5.2.4.4) lib/active_support/notifications.rb:168:in `instrument'
actionview (5.2.4.4) lib/action_view/renderer/abstract_renderer.rb:43:in `instrument'
actionview (5.2.4.4) lib/action_view/renderer/partial_renderer.rb:333:in `render_partial'
actionview (5.2.4.4) lib/action_view/renderer/partial_renderer.rb:312:in `render'
actionview (5.2.4.4) lib/action_view/renderer/renderer.rb:49:in `render_partial'
actionview (5.2.4.4) lib/action_view/helpers/rendering_helper.rb:36:in `render'
hyrax (2.8.0) app/views/hyrax/homepage/_home_content.html.erb:11:in `___sers_crowesn__rvm_gems_ruby_______gems_hyrax_______app_views_hyrax_homepage__home_content_html_erb__2539481459755020282_617760'
actionview (5.2.4.4) lib/action_view/template.rb:159:in `block in render'
activesupport (5.2.4.4) lib/active_support/notifications.rb:170:in `instrument'
actionview (5.2.4.4) lib/action_view/template.rb:354:in `instrument_render_template'
actionview (5.2.4.4) lib/action_view/template.rb:157:in `render'
actionview (5.2.4.4) lib/action_view/renderer/partial_renderer.rb:344:in `block in render_partial'

Desktop (please complete the following information):

Additional context Remove the metadata profile and the error is resolved.