You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I guess the bigger question here is whether you will be calling this method repeatedly for a bunch of incidents in a table - that will be very inefficient.
That's when you might consider some sort of addition to IncidentQuerySet that pre-annotates the resulting Incident objects with acks-by-group from a single query.
Alternative suggestion was to add a new property in incident. By @elfjes in #838:
another option could be to have a property, say Incident.ack_groups that returns a set[str] with non-expired ack-groupnames. You could then do a simple in/__contains__ check if you want to check against a specific group. Still best to prefetch the acks though
As suggested by @lunkwill42 in #838:
Originally posted by @lunkwill42 in #838 (comment)
Originally posted by @lunkwill42 in #838 (comment)
Alternative suggestion was to add a new property in incident. By @elfjes in #838:
Originally posted by @elfjes in #838 (comment)
The text was updated successfully, but these errors were encountered: