Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b01d3f01
Commit
b01d3f01
authored
Feb 23, 2022
by
Pedro Pombeiro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename RunnerRegistrationAuditEventService
parent
3e7b1482
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
8 deletions
+4
-8
ee/app/services/audit_events/register_runner_audit_event_service.rb
...vices/audit_events/register_runner_audit_event_service.rb
+1
-1
ee/app/services/audit_events/runner_audit_event_service.rb
ee/app/services/audit_events/runner_audit_event_service.rb
+2
-6
ee/app/services/audit_events/unregister_runner_audit_event_service.rb
...ces/audit_events/unregister_runner_audit_event_service.rb
+1
-1
No files found.
ee/app/services/audit_events/register_runner_audit_event_service.rb
View file @
b01d3f01
# frozen_string_literal: true
module
AuditEvents
class
RegisterRunnerAuditEventService
<
Runner
Registration
AuditEventService
class
RegisterRunnerAuditEventService
<
RunnerAuditEventService
def
token_field
:runner_registration_token
end
...
...
ee/app/services/audit_events/runner_
registration_
audit_event_service.rb
→
ee/app/services/audit_events/runner_audit_event_service.rb
View file @
b01d3f01
# frozen_string_literal: true
module
AuditEvents
class
Runner
Registration
AuditEventService
<
::
AuditEventService
# Logs an audit event related to a runner
registration
event
class
RunnerAuditEventService
<
::
AuditEventService
# Logs an audit event related to a runner event
#
# @param [Ci::Runner] runner
# @param [String, User] author the entity initiating the operation (e.g. a runner registration or authentication token)
...
...
@@ -43,10 +43,6 @@ module AuditEvents
raise
NotImplementedError
,
"Please implement
#{
self
.
class
}
#
#{
__method__
}
"
end
def
author_class
raise
NotImplementedError
,
"Please implement
#{
self
.
class
}
#
#{
__method__
}
"
end
def
runner_type
@runner
.
runner_type
.
chomp
(
'_type'
)
end
...
...
ee/app/services/audit_events/unregister_runner_audit_event_service.rb
View file @
b01d3f01
# frozen_string_literal: true
module
AuditEvents
class
UnregisterRunnerAuditEventService
<
Runner
Registration
AuditEventService
class
UnregisterRunnerAuditEventService
<
RunnerAuditEventService
def
token_field
:runner_authentication_token
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment