Closed drjakob closed 7 years ago
@drjakob So the problem is that this trigger was activated on th 29th of August at 16:00 on the diary page of Emma showing the birth warning and now if I go back to the diary entry at that time the trigger (or the text components which the trigger activated) are not shown anymore in the diary entry, is that correct?
Correct
This would be a nice fix before launch on monday for the system to work properly!
@drjakob Could you you give me the ids of the text components you expected to show up in the diary entry for the calving alert?
199 for report 3
@matthib: I think this line is the reason for the bug. The conditions_fulfilled
doesn’t take the moment of the diary_entry
into account. I think something like this could solve this:
(validity_period.nil? || (diary_entry.moment - validity_period.hours <= reading.created_at))
@tillprochaska Yes, I guess that makes sense and your suggestion to fix it probably works. I don't have the time atm to try it out, but we should definately gie it a try!
Great!
BUG: This is a serious bug. The Alert (calving will start in 6 hours, sensor (ALERT_Smaxtec_Kalbung_Emma:KuhNr.206_HofHoeck", ID 111), triggered by "Emma Alarm: Geburtsalarm hat ausgelöst. Geburt ist in 6 bis 12 Stunden erwartet" has been displayed yesterday, 16'00 on the page of Emma. Now its gone. WHY? active Triggers should be stable in history! Otherwise the scroll-back-function has no value if important things gets lost.