You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm pretty sure this actually percolates down to the implementation of directly_contains in ActiveFedora.
There are lots of places where the tests were using generic_file.add_file in the setup (which adds the file object to #attached_files in memory) and then never saving the parent. Now I have to save both the parent and the contained file.
I'm pretty sure this actually percolates down to the implementation of
directly_contains
in ActiveFedora.There are lots of places where the tests were using generic_file.add_file in the setup (which adds the file object to #attached_files in memory) and then never saving the parent. Now I have to save both the parent and the contained file.
If you search for
add_file
within this diff of sufia-core you'll see a lot of examples of where I had to save the GenericFile:https://github.com/projecthydra-labs/sufia-core/compare/before_cc...projecthydra-labs:migrate_to_curation_concerns
Here's one example: https://github.com/projecthydra-labs/sufia-core/compare/before_cc...projecthydra-labs:migrate_to_curation_concerns#diff-32a50de6ae2d35fbe4b024d452d3a274R11
The text was updated successfully, but these errors were encountered: