Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Recommended monitors creates duplicates

#671

check custom as well

  1. Fix assignment
  2. Check custom
  3. Remove duplicates from production

test #1, #2

Reported by shawn (at vegantech) · April 9th, 2012 @ 10:04 AM

State: resolved
Assigned to: shawn (at vegantech) shawn (at vegantech)

Activity

  1. shawn (at vegantech)
  2. shawn (at vegantech)
    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)}

    April 9th, 2012 @ 11:07 AM

  3. shawn (at vegantech)
    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...

    April 9th, 2012 @ 11:09 AM

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.