gitlab-org--gitlab-foss/app
Robb Kidd 16ceae895e Separate observing of Note and MergeRequests
* Move is_assigned? and is_being_xx? methods to IssueCommonality

  This is behavior merge requests have in common with issues. Moved
  methods to IssueCommonality role. Put specs directly into
  merge_request_spec because setup differs for issues and MRs
  specifically in the "closed" factory to use.

* Add MergeRequestObserver. Parallels IssueObserver in almost every way.

  Ripe for refactoring.

* Rename MailerObserver to NoteObserver

  With merge request observing moved out of MailerObserver, all that
  was left was Note logic. Renamed to NoteObserver, added tests and
  updated application config for new observer names. Refactored
  NoteObserver to use the note's author and not rely on current_user.

* Set current_user for MergeRequestObserver

  IssueObserver and MergeRequestObserver are the only observers that
  need a reference to the current_user that they cannot look up on
  the objects they are observing.
2012-10-10 17:59:25 -04:00
..
assets Fix vote counting to only count main target notes (not mixed in ones) 2012-10-10 12:09:45 +02:00
contexts Make notes for merge requests include commit notes and add helpers 2012-10-10 12:06:30 +02:00
controllers Separate observing of Note and MergeRequests 2012-10-10 17:59:25 -04:00
decorators Merge pull request #1627 from tsigo/tree_performance 2012-10-08 05:36:31 -07:00
helpers Add links to the note source if the note is mixed in 2012-10-10 12:14:48 +02:00
mailers Capitlization of /gitlab/i normalized. #1367 2012-09-06 11:21:35 +03:00
models Separate observing of Note and MergeRequests 2012-10-10 17:59:25 -04:00
observers Separate observing of Note and MergeRequests 2012-10-10 17:59:25 -04:00
roles Separate observing of Note and MergeRequests 2012-10-10 17:59:25 -04:00
uploaders Fully embrace Ruby 1.9 hash syntax 2012-08-10 18:25:15 -04:00
views Add links to the note source if the note is mixed in 2012-10-10 12:14:48 +02:00
workers System Hook: implemented 2012-07-19 00:25:10 +03:00