Recommended monitors creates duplicates
-
shawn (at vegantech)
custom is not an issue
-
shawn (at vegantech)
removed duplicates with:
rs= RecommendedMonitor.group([:probe_definition_id, :intervention_definition_id]).having("count(id) > 1 and min(position) and min(id)") ;nil
rs.each {|rm| RecommendedMonitor.where(["id != ? and probe_definition_id = ? and intervention_definition_id = ?",rm.id,rm.probe_definition_id, rm.intervention_definition_id]).each(&:destroy)} -
shawn (at vegantech)
- State changed from new to resolved
(from [f4010a9a0874f11e6db5c0b7984debf7b6b4a92a]) [#671 state:resolved] fix assignment of probes to intervention definition (exclude duplicates) https://github.com/vegantech/sims/commit/f4010a9a0874f11e6db5c0b798...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.