
Recommended monitors creates duplicates
Reported by shawn (at vegantech) | April 9th, 2012 @ 10:04 AM | in For Apr 2011 DPI Meeting (closed)
Comments and changes to this ticket
-
-
shawn (at vegantech) April 9th, 2012 @ 11:07 AM
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) April 9th, 2012 @ 11:09 AM
- 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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Student Intervention Monitoring System