Firefighters have told us that a alert remains on the platfrom even after it has been acknowledged.
I've now identified the problem and fixed it.
In update_live_alerts_data we only take into account the case where len(live_alerts) > len(ongoing_live_alerts) i.e. we've received new alerts but not the case where alerts have been acknowledged and are therefore no longer in live_alerts since we only fetch unacknowledged events.
Firefighters have told us that a alert remains on the platfrom even after it has been acknowledged.
I've now identified the problem and fixed it.
In update_live_alerts_data we only take into account the case where len(live_alerts) > len(ongoing_live_alerts) i.e. we've received new alerts but not the case where alerts have been acknowledged and are therefore no longer in live_alerts since we only fetch unacknowledged events.