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
114bf455
Commit
114bf455
authored
Nov 11, 2020
by
Giorgenes Gelatti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply 1 suggestion(s) to 1 file(s)
parent
93842ae9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/models/packages/event.rb
app/models/packages/event.rb
+2
-2
No files found.
app/models/packages/event.rb
View file @
114bf455
...
...
@@ -29,8 +29,8 @@ class Packages::Event < ApplicationRecord
"i_package_
#{
event_scope
}
_
#{
originator
}
_
#{
event_type
.
gsub
(
/_packages?/
,
""
)
}
"
end
#
remove some of the events for now so we dont hammer redis too hard
#
TODO: probably remove this very soon
#
Remove some of the events, for now, so we don't hammer Redis too hard.
#
See: https://gitlab.com/gitlab-org/gitlab/-/issues/280770
def
self
.
event_allowed?
(
event_scope
,
event_type
,
originator
)
return
false
if
originator
.
to_sym
==
:guest
return
true
if
UNIQUE_EVENTS_ALLOWED
.
include?
(
event_type
.
to_sym
)
...
...
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