Commit 83a7eb42 authored by Mikołaj Wawrzyniak's avatar Mikołaj Wawrzyniak

Merge branch 'gitlab-tracking-meta-5' into 'master'

Add user to admin audit logs controller

See merge request gitlab-org/gitlab!65244
parents 25c2eba6 ec08d47d
......@@ -32,7 +32,7 @@ class Admin::AuditLogsController < Admin::ApplicationController
nil
end
Gitlab::Tracking.event(self.class.name, 'search_audit_event')
Gitlab::Tracking.event(self.class.name, 'search_audit_event', user: current_user)
end
private
......
......@@ -38,7 +38,8 @@ RSpec.describe Admin::AuditLogsController do
expect_snowplow_event(
category: 'Admin::AuditLogsController',
action: 'search_audit_event'
action: 'search_audit_event',
user: admin
)
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment