Closed jcoyne closed 2 years ago
@justinlittman a builder?
Cocina::Models::Builders::DescriptiveBuilder
instead of Cocina::Models::ToFedora/FromFedora::Descriptive
It's not really a Builder pattern though. The builder is a specific thing: https://github.com/davidgf/design-patterns-in-ruby/blob/master/builder.md
@justinlittman I've added the missing specs. Let's just get this PR in as minimally changed from DSA. Then I want to make some changes as a follow up. I don't think that ToFedora
or FromFedora
are appropriate names anymore. Maybe ToMODS
and FromMODS
instead?
I don't see the new specs:
What am I missing?
@justinlittman sorry, I thought you were talking about a different spec file.
The "fixes #2426" refers to ... nothing. Is this related to sul-dlss/argo/issues/3551 as the original issue?
@ndushay that was supposed to be #426. Thanks for catching that.
Why was this change made? 🤔
So we can distribute this code. Namely to Argo so it can generate cocina from modsulator and we can retire the legacy API. Fixes #426
How was this change tested? 🤨
Tested in DSA, see https://github.com/sul-dlss/dor-services-app/pull/3917