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 OTUs in determinations #22

Closed tmcelrath closed 3 months ago

tmcelrath commented 3 months ago

TODO

Code:

puts TaxonDetermination.joins(:otu).where(project_id: 1).merge(Otu.where.not(project_id: 1).order(:id, :project_id)).
map { |d| "- [ ] taxon_determination: [#{d.id}](https://sfg.taxonworks.org/taxon_determinations/#{d.id}); otu_id: #{d.otu.id}; otu_project_id: #{d.otu.project_id}" }.join("\n")
tmcelrath commented 3 months ago

@LocoDelAssembly: Removed labels. Not sure they completely fit. Essentially this requires creating corresponding OTUs inside project and re-assign to new OTU.

tmcelrath commented 3 months ago

Did this get fixed @LocoDelAssembly ?

tmcelrath commented 3 months ago

@LocoDelAssembly It was not. The fix requires manual re-assignment of OTUs or let TW generate one blank OTU for you. I just tested with dev machine, and editing each one and then retyping last letter of name (just to fire up autocomplete) lets you create the substitute OTU in place. With the project already selected, clicking on each number lets you go directly into the offending taxon determination. Looks I accidentally removed human curation needed tag, I should have removed script curation needed only. PS: Progress can be tracked by clicking on checkboxes. Not sure if you can do it given I created the issue?

tmcelrath commented 3 months ago

Manually moved and changed as above. Closing.