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 CVTs in biocuration classifications #20

Closed tmcelrath closed 4 months ago

tmcelrath commented 4 months ago

TODO

Code:

puts BiocurationClassification.joins(:biocuration_class).where(project_id: 1).merge(ControlledVocabularyTerm.where.not(project_id: 1).order(:id, :project_id)).
map { |b| "- [ ] collection_object: [#{b.biological_collection_object.id}](https://sfg.taxonworks.org/collection_objects#{b.biological_collection_object.id}); biocuration_classification: #{b.id}; biocuration_class_id: #{b.biocuration_class.id}; biocuration_class_project_id: #{b.biocuration_class.project_id}" }.join("\n")

NOTE

It is a single collection object, with Male and Female coming from one of the 3i projects.

tmcelrath commented 4 months ago

Fixed by @LocoDelAssembly