SpeciesFileGroup / INHS-Insect-Collection-Data-Curation

An accesible issue tracker for reporting issues or requests with respect to INHS data quality.
2 stars 0 forks source link

Fix cross-project protonyms in type materials #21

Closed tmcelrath closed 3 months ago

tmcelrath commented 3 months ago

TODO

Code:

puts TypeMaterial.joins(:protonym).where(project_id: 1).merge(TaxonName.where.not(project_id: 1).order(:id, :project_id)).
map { |t| "- [ ] type_material: [#{t.id}](https://sfg.taxonworks.org/type_materials/#{t.id}); protonym_id: #{t.protonym.id}; protonym_project_id: #{t.protonym.project_id}" }.join("\n")

Requires creating corresponding protonym and assign it to the type material.

tmcelrath commented 3 months ago

Fixed by @LocoDelAssembly