gitlab-org--gitlab-foss/app/controllers
Douwe Maan c11006ac6c Merge branch '18755-fix-destroy-project-causes-post_decline_request-to-be-executed' into 'master'
Resolve "Destroying a project causes post_decline_request to be executed"

## What does this MR do?

Ensure we don't send "access request declined" to access requesters when a project is deleted.

## Are there points in the code the reviewer needs to double check?

I've created a service to decouple the notification sending from the AR model.

## Why was this MR needed?

Because there was an issue.

## What are the relevant issue numbers?

Fixes #18755, #18750.

## Does this MR meet the acceptance criteria?

- [x] No CHANGELOG needed.
- [x] Tests
  - [x] Added for this feature/bug
  - [x] All builds are passing
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [x] Branch has no merge conflicts with `master` (if you do - rebase it please)
- [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

See merge request !4744
2016-06-22 01:15:29 +00:00
..
admin Merge branch 'dz-fix-appearance-preview' into 'master' 2016-06-21 16:31:33 +00:00
ci
concerns Raise a new Gitlab::Access::AccessDeniedError when permission is not enough to destroy a member 2016-06-18 06:06:34 +02:00
dashboard Ensure Todos counters doesn't count Todos for projects pending delete 2016-06-17 16:17:43 -03:00
explore
groups Raise a new Gitlab::Access::AccessDeniedError when permission is not enough to destroy a member 2016-06-18 06:06:34 +02:00
import lots of refactoring again based on feedback. Changed the UI slightly and also fixed a small bug 2016-06-15 17:31:00 +02:00
oauth Fix endless redirections when accessing user OAuth applications when they are disabled 2016-06-08 05:52:04 -07:00
profiles Merge branch 'issue_12758' into 'master' 2016-06-17 23:28:22 +00:00
projects Merge branch '18755-fix-destroy-project-causes-post_decline_request-to-be-executed' into 'master' 2016-06-22 01:15:29 +00:00
sherlock
abuse_reports_controller.rb
application_controller.rb Raise a new Gitlab::Access::AccessDeniedError when permission is not enough to destroy a member 2016-06-18 06:06:34 +02:00
autocomplete_controller.rb Fixed issue with move dropdown not being searchable 2016-06-15 08:53:11 +01:00
confirmations_controller.rb
dashboard_controller.rb
emojis_controller.rb
groups_controller.rb
health_check_controller.rb
help_controller.rb
invites_controller.rb
jwt_controller.rb Improve Gitlab::Auth method names 2016-06-10 14:51:16 +02:00
namespaces_controller.rb
notification_settings_controller.rb Merge master into issue_12758 2016-06-17 14:29:11 -03:00
omniauth_callbacks_controller.rb
passwords_controller.rb
profiles_controller.rb
projects_controller.rb Provide default branch/file path for ProjectsController#show 2016-06-20 21:44:22 +02:00
registrations_controller.rb
root_controller.rb
search_controller.rb
sent_notifications_controller.rb
sessions_controller.rb Merge branch '18225-avoid-full-table-users-count' into 'master' 2016-06-15 15:12:56 +00:00
snippets_controller.rb
uploads_controller.rb
users_controller.rb