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
fd5184c7
Commit
fd5184c7
authored
Sep 08, 2020
by
Francisco Javier López
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable feature flag track_editor_edit_actions-flag by default
parent
b40c5b31
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
app/controllers/projects/blob_controller.rb
app/controllers/projects/blob_controller.rb
+1
-1
config/feature_flags/development/track_editor_edit_actions.yml
...g/feature_flags/development/track_editor_edit_actions.yml
+1
-1
lib/gitlab/usage_data_counters/editor_unique_counter.rb
lib/gitlab/usage_data_counters/editor_unique_counter.rb
+1
-1
No files found.
app/controllers/projects/blob_controller.rb
View file @
fd5184c7
...
@@ -37,7 +37,7 @@ class Projects::BlobController < Projects::ApplicationController
...
@@ -37,7 +37,7 @@ class Projects::BlobController < Projects::ApplicationController
push_frontend_feature_flag
(
:suggest_pipeline
)
if
experiment_enabled?
(
:suggest_pipeline
)
push_frontend_feature_flag
(
:suggest_pipeline
)
if
experiment_enabled?
(
:suggest_pipeline
)
end
end
track_redis_hll_event
:create
,
:update
,
name:
'g_edit_by_sfe'
,
feature: :track_editor_edit_actions
track_redis_hll_event
:create
,
:update
,
name:
'g_edit_by_sfe'
,
feature: :track_editor_edit_actions
,
feature_default_enabled:
true
def
new
def
new
commit
unless
@repository
.
empty?
commit
unless
@repository
.
empty?
...
...
config/feature_flags/development/track_editor_edit_actions.yml
View file @
fd5184c7
...
@@ -4,4 +4,4 @@ introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/39694
...
@@ -4,4 +4,4 @@ introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/39694
rollout_issue_url
:
https://gitlab.com/gitlab-org/gitlab/-/issues/240928
rollout_issue_url
:
https://gitlab.com/gitlab-org/gitlab/-/issues/240928
group
:
group::editor
group
:
group::editor
type
:
development
type
:
development
default_enabled
:
fals
e
default_enabled
:
tru
e
lib/gitlab/usage_data_counters/editor_unique_counter.rb
View file @
fd5184c7
...
@@ -41,7 +41,7 @@ module Gitlab
...
@@ -41,7 +41,7 @@ module Gitlab
private
private
def
track_unique_action
(
action
,
author
,
time
)
def
track_unique_action
(
action
,
author
,
time
)
return
unless
Feature
.
enabled?
(
:track_editor_edit_actions
)
return
unless
Feature
.
enabled?
(
:track_editor_edit_actions
,
default_enabled:
true
)
return
unless
author
return
unless
author
Gitlab
::
UsageDataCounters
::
HLLRedisCounter
.
track_event
(
author
.
id
,
action
,
time
)
Gitlab
::
UsageDataCounters
::
HLLRedisCounter
.
track_event
(
author
.
id
,
action
,
time
)
...
...
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