|
@@ -251,12 +251,6 @@ def create_issue_platform_occurrence(
|
|
|
if last_successful_checkin:
|
|
|
last_successful_checkin_timestamp = last_successful_checkin.date_added.isoformat()
|
|
|
|
|
|
- assignee = None
|
|
|
- # TODO: Remove org fetch after we remove feature flag
|
|
|
- organization = Organization.objects.get_from_cache(id=monitor_env.monitor.organization_id)
|
|
|
- if features.has("organizations:crons-ownership", organization):
|
|
|
- assignee = monitor_env.monitor.owner_actor
|
|
|
-
|
|
|
occurrence = IssueOccurrence(
|
|
|
id=uuid.uuid4().hex,
|
|
|
resource_id=None,
|
|
@@ -281,7 +275,7 @@ def create_issue_platform_occurrence(
|
|
|
culprit=occurrence_data["reason"],
|
|
|
detection_time=current_timestamp,
|
|
|
level=occurrence_data["level"],
|
|
|
- assignee=assignee,
|
|
|
+ assignee=monitor_env.monitor.owner_actor,
|
|
|
)
|
|
|
|
|
|
if failed_checkin.trace_id:
|