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
fix(api): handle DoesNotExist in audit log signals and webhooks (#6879)
When a related FeatureState or FeatureSegment is deleted before the
async create_audit_log_from_historical_record task runs, the signals
and mappers crash with DoesNotExist errors. Handle these gracefully:
- audit/signals.py: catch FeatureState.DoesNotExist in
send_feature_flag_went_live_signal and skip the signal
- integrations/grafana/mappers.py: catch ObjectDoesNotExist in
_get_instance_tags_from_audit_log_record and return empty tags
- features/tasks.py: catch ObjectDoesNotExist when accessing
feature_state.feature_segment and fall back to None
0 commit comments