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
If I try to delete an individual committee member with committee_member.destroy, it returns true, but the committee member didn't actually get deleted.
I stepped through the code and saw a transaction rollback:
<RDF::Transaction::TransactionError: Error merging transaction. Repository has changed during transaction time.>
I asked @no-reply about it, and he suspects that the parent work's committee_members field got updated during the middle of the transaction to update the nested record, so the transaction rolled back.
Steps to reproduce the problem:
Etd
record with committee chairs and members:Look at the
Etd
record in the fedora console.Notice that the committee chair is correctly listed in the
ths
predicate, and the committee members are correctly listed in therev
predicate.Scroll to the bottom of the page to the 'Other Resources' section, and notice 3 nested records (1 for the chair and 2 for the members).
So far, everything is correct in fedora.
Now go back to the rails console and delete the 2 committee members:
Go back to the fedora console, and reload the page.
Notice that the
rev
predicate has disappeared from the record (as expected).But down in the 'Other Resources' section, you still see 3 child resources, even though you would expect to see only 1.
Expected Result:
The 2 child resources should have been removed from the work's record in fedora.
Actual Result:
The 2 (orphaned) child resources still exist in fedora.
The text was updated successfully, but these errors were encountered: