sul-dlss / cocina-models

Cocina repository data model (implemented in Ruby)
https://sul-dlss.github.io/cocina-models/
3 stars 0 forks source link

remove deprecated DescriptiveParallelContributor model #532

Open ndushay opened 2 years ago

ndushay commented 2 years ago

DescriptiveParallelContributor class is marked deprecated: https://github.com/sul-dlss/cocina-models/blob/main/lib/cocina/models/descriptive_parallel_contributor.rb#L5

https://github.com/sul-dlss/cocina-models/blob/main/openapi.yml#552

Can it be removed?

Arcadia says "parallelContributor was never in use"

Steps

NOTE that this is the only thing marked deprecated in the cocina-models openapi.yml file

ndushay commented 2 years ago

no occurences found in DROs or Collections, using property_existence*.rb reports from #4245

ndushay commented 2 years ago

Correction: there are lots of EMPTY occurrences of parallelContributor ...

justinlittman commented 2 years ago

So does that mean this is un-removable?

jcoyne commented 2 years ago

@justinlittman I think we could remove it by making it optional, omitable, and changing the default to nil. Then we can rewrite any/all descriptive metadata that has parallelContributor: []

ndushay commented 2 years ago

I don't think the cost of always putting in empty arrays should be "we can never omit an array property from the model."

ndushay commented 1 year ago

reran reports today; still no non-empty values for parallelContributor for collections or DROs. starting work on PR to

(from JCoyne:)

I think we could remove it by making it optional, omitable, and changing the default to nil. Then we can rewrite any/all descriptive metadata that has parallelContributor: []