OregonDigital / hyrax-migrator

A Rails engine to facilitate migrating works into a Hyrax based application
MIT License
0 stars 0 forks source link

local_collection_id strange behavior #343

Open lsat12357 opened 2 years ago

lsat12357 commented 2 years ago

This is a weird bug... Only happens on cpds, and only to local_collection_id on other assets that are NOT cpds, the local_collection_id looks fine, something like ["Coll 333"] i.e, it's a string, in an array. On cpds, it looks like this: ["[\"Coll 333\"]"] i.e. the array object is treated like a string and inserted into an array I also discovered that this might have something to do with the fact that the cpds get updated one extra time, in order to put the relationships in, and if you look at a cpd before that happens, (eg there was a child missing, so the relationship update did not happen) the local_collection_id looks fine. This is not necessarily an urgent bug to fix, as it is possible to remediate the assets.