curationexperts/mira — pull request #314 by mkorcy (2014-10-18 14:16:07+00:00)
Title: Fedora state inconsistency

The first commit is just that I noticed while working on this that the test for create object was never getting to the object being successfully saved because "Displays In" wasn't set yet it wasn't getting caught by the test.

The rest is a fix for a problem we've seen a lot, our users import an object into MIRA, and then will purge it, and start over again for various reasons. This has resulted in a lot of objects which are Active in SOLR and MIRA but are State D in Fedora because of soft purges in MIRA. The change here explicitly marks objects A if they're currently state D when setting the rest of the common attributes.

(At some point, I'll have to go back and compare D objects in Fedora vs our SOLR index to try and fix the data inconsistency of incorrectly marked Ds vs objects that are actually soft purged. more of a note for myself.)

The 2nd commit is a spec for this, and the 3rd commit is the fix.