pulibrary / figgy

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

IngestFolderJob failing when attaching images to coins #6289

Closed tpendragon closed 5 months ago

tpendragon commented 5 months ago

[Figgy/production] NoMethodError: undefined method `artists' for #<Numismatics::CoinDecorator:0x00007f1b940a3f78 @object=#<Numismatics::Coin id=#<Valkyrie::ID:0x00007f1b941001d8 @id="d8f8732c-56a7-4e0a-8553-41c97ebdf3ee"> internal_resource="Numismatics::Coin" created_at="2024-02-20T20:24:08.440Z" updated_at="2024-03-22T17:02:00.326Z" new_record=false optimistic_lock_token=[#<Valkyrie::Persistence::OptimisticLockToken:0x00007f1b94105fc0 @adapter_id=#<Valkyrie::ID:0x00007f1b94106038 @id="746f06acf4d573bebd...

Backtrace

line 22 of [PROJECT_ROOT]/app/indexers/coin_indexer.rb: linked_and_nested_parent_attributes
line 16 of [PROJECT_ROOT]/app/indexers/coin_indexer.rb: parent_attributes
line 35 of [PROJECT_ROOT]/app/indexers/coin_indexer.rb: parent_fields

View full backtrace and more info at honeybadger.io

tpendragon commented 5 months ago

I'm having a very hard time replicating this. It looks like somehow when IngestFolderJob runs on resources like https://figgy.princeton.edu/catalog/d8f8732c-56a7-4e0a-8553-41c97ebdf3ee it gets to CoinIndexer in a situation where resource is a Coin, but parent is also a DecoratedCoin?