sul-dlss / argo

The administrative discovery interface for Stanford's Digital Object Registry
Other
20 stars 5 forks source link

Get rid of nil models. Let DSA find errors be unhandled. #4512

Closed justinlittman closed 2 months ago

justinlittman commented 2 months ago

Why was this change made?

NilModels are largely vestigial. They were necessary when our cocina implementation was less mature. However:

Further, we should not expect cocina validation errors or DSA find cocina errors to happen, such that they need to be rescued. Again, it is doubtful that they would be rescued correctly and are largely untested. At this point, it is better to treat them as unhandled exceptions.

How was this change tested?