app/models/hierarchy/concept_merger.rb
# One taxon concept has an entry in a complete hierarchy and the other taxon
# concept also has an entry in that hierarchy. ...Merging them would violate
# the other hierarchy's assertion that they are different entities.
One taxon concept has an entry in a complete hierarchy and the other taxon
concept also has an entry in that hierarchy. ...Merging them would violate
the other hierarchy's assertion that they are different entities.
One taxon concept has an entry in a complete hierarchy and the other taxon concept also has an entry in that hierarchy . ... Merging them would violate the other hierarchy ' s assertion that they are different entities .
def additional_hierarchy_affected_by_merge(tc_id1, tc_id2)
      from_first = HierarchyEntry.visible.
        joins(:hierarchy).
        where(taxon_concept_id: tc_id1, hierarchies: { complete: true }).
        pluck(:hierarchy_id)
      HierarchyEntry.visible.
        where(taxon_concept_id: tc_id2, hierarchy_id: from_first).
        exists?
    end
def additional_hierarchy_affected_by_merge ( tc_id1 , tc_id2 ) from_first = HierarchyEntry . visible . joins ( :hierarchy ) . where ( taxon_concept_id : tc_id1 , hierarchies : { complete : true } ) . pluck ( :hierarchy_id ) HierarchyEntry . visible . where ( taxon_concept_id : tc_id2 , hierarchy_id : from_first ) . exists? end
One taxon concept has an entry in a complete hierarchy and the other taxon
concept also has an entry in that hierarchy.
One taxon concept has an entry in a complete hierarchy and the other taxon concept also has an entry in that hierarchy .
tc_id1
<not_specific>
tc_id2
<not_specific>