summaryrefslogtreecommitdiff
path: root/app/models/event.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-08-01 15:11:13 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-08-01 15:11:13 +0000
commitfaa19db44a5a4d0fb7a3be07319ca6201caa185a (patch)
tree7370bae7c72258b93ab0f02ba87145b43de5313f /app/models/event.rb
parent9c5341dd0832c3af377191c461c800e1aa048b10 (diff)
downloadgitlab-ce-faa19db44a5a4d0fb7a3be07319ca6201caa185a.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/event.rb')
-rw-r--r--app/models/event.rb42
1 files changed, 21 insertions, 21 deletions
diff --git a/app/models/event.rb b/app/models/event.rb
index 7760be3e817..5349ad029ec 100644
--- a/app/models/event.rb
+++ b/app/models/event.rb
@@ -14,18 +14,18 @@ class Event < ApplicationRecord
default_scope { reorder(nil) } # rubocop:disable Cop/DefaultScope
ACTIONS = HashWithIndifferentAccess.new(
- created: 1,
- updated: 2,
- closed: 3,
- reopened: 4,
- pushed: 5,
- commented: 6,
- merged: 7,
- joined: 8, # User joined project
- left: 9, # User left project
- destroyed: 10,
- expired: 11, # User left project due to expiry
- approved: 12
+ created: 1,
+ updated: 2,
+ closed: 3,
+ reopened: 4,
+ pushed: 5,
+ commented: 6,
+ merged: 7,
+ joined: 8, # User joined project
+ left: 9, # User left project
+ destroyed: 10,
+ expired: 11, # User left project due to expiry
+ approved: 12
).freeze
private_constant :ACTIONS
@@ -36,15 +36,15 @@ class Event < ApplicationRecord
ISSUE_ACTIONS = [:created, :updated, :closed, :reopened].freeze
TARGET_TYPES = HashWithIndifferentAccess.new(
- issue: Issue,
- milestone: Milestone,
- merge_request: MergeRequest,
- note: Note,
- project: Project,
- snippet: Snippet,
- user: User,
- wiki: WikiPage::Meta,
- design: DesignManagement::Design
+ issue: Issue,
+ milestone: Milestone,
+ merge_request: MergeRequest,
+ note: Note,
+ project: Project,
+ snippet: Snippet,
+ user: User,
+ wiki: WikiPage::Meta,
+ design: DesignManagement::Design
).freeze
RESET_PROJECT_ACTIVITY_INTERVAL = 1.hour