Closed revgum closed 7 years ago
@vantuyls @straleyb and I worked a bit and explored how to try and address this using a validator, but they fired before the actors ran. The AddToWorkActor
is responsible for persisting the relationship from parent to child.. and it was found that we can inject errors on the curation_concern
to propagate them to the front-end. So this PR seems like the cleanest approach to getting validation as a byproduct of this persist.
It wasn't clear how else to accomplish this functionality without what seems like significantly reworking what and how the actor operates in conjunction with validations on the backend.
First step in surfacing a fix for Sufia Issue 3042: https://github.com/projecthydra/sufia/issues/3042