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
c9a34270
Commit
c9a34270
authored
Dec 15, 2020
by
ggelatti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable collect_package_events_redis by default
parent
a09aa50a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
app/services/packages/create_event_service.rb
app/services/packages/create_event_service.rb
+1
-1
changelogs/unreleased/205578-enable-collect_package_events_redis-feature.yml
...ed/205578-enable-collect_package_events_redis-feature.yml
+5
-0
config/feature_flags/development/collect_package_events_redis.yml
...eature_flags/development/collect_package_events_redis.yml
+1
-1
No files found.
app/services/packages/create_event_service.rb
View file @
c9a34270
...
...
@@ -3,7 +3,7 @@
module
Packages
class
CreateEventService
<
BaseService
def
execute
if
Feature
.
enabled?
(
:collect_package_events_redis
)
if
Feature
.
enabled?
(
:collect_package_events_redis
,
default_enabled:
true
)
::
Packages
::
Event
.
unique_counters_for
(
event_scope
,
event_name
,
originator_type
).
each
do
|
event_name
|
::
Gitlab
::
UsageDataCounters
::
HLLRedisCounter
.
track_event
(
event_name
,
values:
current_user
.
id
)
end
...
...
changelogs/unreleased/205578-enable-collect_package_events_redis-feature.yml
0 → 100644
View file @
c9a34270
---
title
:
Enable collect_package_events_redis by default
merge_request
:
50092
author
:
type
:
changed
config/feature_flags/development/collect_package_events_redis.yml
View file @
c9a34270
...
...
@@ -4,4 +4,4 @@ introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/46846
rollout_issue_url
:
group
:
group::package
type
:
development
default_enabled
:
fals
e
default_enabled
:
tru
e
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