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
39624094
Commit
39624094
authored
Apr 27, 2021
by
alinamihaila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove extra feature flag check
parent
2d4659e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
9 deletions
+0
-9
lib/gitlab/usage_data_counters/editor_unique_counter.rb
lib/gitlab/usage_data_counters/editor_unique_counter.rb
+0
-1
spec/lib/gitlab/usage_data_counters/editor_unique_counter_spec.rb
.../gitlab/usage_data_counters/editor_unique_counter_spec.rb
+0
-8
No files found.
lib/gitlab/usage_data_counters/editor_unique_counter.rb
View file @
39624094
...
...
@@ -50,7 +50,6 @@ module Gitlab
private
def
track_unique_action
(
action
,
author
,
time
)
return
unless
Feature
.
enabled?
(
:track_editor_edit_actions
,
default_enabled:
true
)
return
unless
author
Gitlab
::
UsageDataCounters
::
HLLRedisCounter
.
track_event
(
action
,
values:
author
.
id
,
time:
time
)
...
...
spec/lib/gitlab/usage_data_counters/editor_unique_counter_spec.rb
View file @
39624094
...
...
@@ -28,14 +28,6 @@ RSpec.describe Gitlab::UsageDataCounters::EditorUniqueCounter, :clean_gitlab_red
it
'does not track edit actions if author is not present'
do
expect
(
track_action
(
author:
nil
)).
to
be_nil
end
context
'when feature flag track_editor_edit_actions is disabled'
do
it
'does not track edit actions'
do
stub_feature_flags
(
track_editor_edit_actions:
false
)
expect
(
track_action
(
author:
user1
)).
to
be_nil
end
end
end
context
'for web IDE edit actions'
do
...
...
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