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
0
Merge Requests
0
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
Kazuhiko Shiozaki
gitlab-ce
Commits
0d41f6f0
Commit
0d41f6f0
authored
Apr 02, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove issue observer
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
c4e81ed9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
30 deletions
+0
-30
app/observers/issue_observer.rb
app/observers/issue_observer.rb
+0
-29
config/application.rb
config/application.rb
+0
-1
No files found.
app/observers/issue_observer.rb
deleted
100644 → 0
View file @
c4e81ed9
class
IssueObserver
<
BaseObserver
def
after_close
(
issue
,
transition
)
notification
.
close_issue
(
issue
,
current_user
)
event_service
.
close_issue
(
issue
,
current_user
)
create_note
(
issue
)
execute_hooks
(
issue
)
end
def
after_reopen
(
issue
,
transition
)
event_service
.
reopen_issue
(
issue
,
current_user
)
create_note
(
issue
)
execute_hooks
(
issue
)
end
protected
# Create issue note with service comment like 'Status changed to closed'
def
create_note
(
issue
)
Note
.
create_status_change_note
(
issue
,
issue
.
project
,
current_user
,
issue
.
state
,
current_commit
)
end
def
create_assignee_note
(
issue
)
Note
.
create_assignee_change_note
(
issue
,
issue
.
project
,
current_user
,
issue
.
assignee
)
end
def
execute_hooks
(
issue
)
issue
.
project
.
execute_hooks
(
issue
.
to_hook_data
,
:issue_hooks
)
end
end
config/application.rb
View file @
0d41f6f0
...
...
@@ -21,7 +21,6 @@ module Gitlab
# Activate observers that should always be running.
config
.
active_record
.
observers
=
:milestone_observer
,
:project_activity_cache_observer
,
:issue_observer
,
:key_observer
,
:merge_request_observer
,
:note_observer
,
...
...
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