active_fedora icon indicating copy to clipboard operation
active_fedora copied to clipboard

Same object added multiple times to indirect container set

Open elrayle opened this issue 10 years ago • 2 comments

See test indirect_container_spec.rb (line 251) in branch indirect_container_is_set_in_memory.

3 tests added...

  1. add same object multiple times to indirect container in memory -- FAILS
  2. add same object multiple times to indirect container and save -- FAILS
  3. add same object multiple times to indirect container and save and reload -- PASSES

elrayle avatar Jul 09 '15 23:07 elrayle

Was this related to rebuilding indirect containers as autosave associations?

mjgiarlo avatar Jul 09 '15 23:07 mjgiarlo

In-memory operations and .save and .reload operations are expected to behave the same. If that is not possible due to technical issues, then an error should be raised that the attempted operation requires the objects to be saved. Auto-save is a separate issue. If auto-save is desired, a new issue needs to be created for that.

elrayle avatar Jul 13 '15 18:07 elrayle