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
34ceace6
Commit
34ceace6
authored
Jul 11, 2019
by
Etienne Baqué
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a variable name in Audit::Detail
parent
c3896451
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
ee/lib/audit/details.rb
ee/lib/audit/details.rb
+6
-2
ee/spec/support/shared_examples/features/audit_event_contains_custom_message.rb
..._examples/features/audit_event_contains_custom_message.rb
+1
-1
No files found.
ee/lib/audit/details.rb
View file @
34ceace6
...
@@ -33,7 +33,7 @@ module Audit
...
@@ -33,7 +33,7 @@ module Audit
when
:failed_login
when
:failed_login
"Failed to login with
#{
oath_label
}
authentication"
"Failed to login with
#{
oath_label
}
authentication"
when
:custom_message
when
:custom_message
detail_value
detail_value
_with_space
else
else
text_for_change
(
target_detail_value
)
text_for_change
(
target_detail_value
)
end
end
...
@@ -49,7 +49,11 @@ module Audit
...
@@ -49,7 +49,11 @@ module Audit
end
end
def
target_detail_value
def
target_detail_value
@details
[
:target_type
]
==
'Operations::FeatureFlag'
?
detail_value
:
detail_value
.
tr
(
'_'
,
' '
)
@details
[
:target_type
]
==
'Operations::FeatureFlag'
?
detail_value
:
detail_value_with_space
end
def
detail_value_with_space
detail_value
.
tr
(
'_'
,
' '
)
end
end
def
detail_value
def
detail_value
...
...
ee/spec/support/shared_examples/features/audit_event_contains_custom_message.rb
View file @
34ceace6
...
@@ -20,7 +20,7 @@ shared_examples 'audit event contains custom message' do
...
@@ -20,7 +20,7 @@ shared_examples 'audit event contains custom message' do
visit
audit_events_url
visit
audit_events_url
end
end
it
'user se
s
s this message'
do
it
'user se
e
s this message'
do
expect
(
page
).
to
have_content
(
'Message with spaces'
)
expect
(
page
).
to
have_content
(
'Message with spaces'
)
end
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