Skip to content
Snippets Groups Projects

Added audit events for update and destroy destinations

Merged Hitesh Raghuvanshi requested to merge 404730-audit-events-instance-dest into master
Files
5
@@ -26,7 +26,7 @@ def find_object(destination_gid)
destination
end
def audit(destination, action:)
def audit(destination, action:, extra_context: {})
audit_context = {
name: "#{action}_instance_event_streaming_destination",
author: current_user,
@@ -35,7 +35,7 @@ def audit(destination, action:)
message: "#{action.capitalize} instance event streaming destination #{destination.destination_url}"
}
::Gitlab::Audit::Auditor.audit(audit_context)
::Gitlab::Audit::Auditor.audit(audit_context.merge(extra_context))
end
end
end
Loading