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
83e19b75
Commit
83e19b75
authored
Jan 30, 2018
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor code
parent
e44c3027
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ee/lib/gitlab/metrics/multi_file_editor.rb
ee/lib/gitlab/metrics/multi_file_editor.rb
+2
-2
spec/ee/spec/lib/gitlab/metrics/multi_file_editor_spec.rb
spec/ee/spec/lib/gitlab/metrics/multi_file_editor_spec.rb
+1
-1
No files found.
ee/lib/gitlab/metrics/multi_file_editor.rb
View file @
83e19b75
...
...
@@ -6,12 +6,12 @@ module Gitlab
METRIC_NAME
=
:multi_file_editor_usage
def
initialize
(
project
,
current_user
,
commit
)
@project
,
@current_user
,
@commit
=
project
,
current_user
,
@commit
=
commit
@project
,
@current_user
,
@commit
=
project
,
current_user
,
commit
end
def
record
::
Gitlab
::
Metrics
.
counter
(
METRIC_NAME
,
METRIC_NAME
,
'Total number of commits using the multi-file web editor'
,
metric_labels
)
end
...
...
spec/ee/spec/lib/gitlab/metrics/multi_file_editor_spec.rb
View file @
83e19b75
...
...
@@ -23,7 +23,7 @@ describe Gitlab::Metrics::MultiFileEditor do
end
describe
'.record'
do
it
'records the right
number of commit file
s'
do
it
'records the right
metric
s'
do
expect
(
::
Gitlab
::
Metrics
).
to
receive
(
:counter
).
with
(
*
params
)
subject
.
record
...
...
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