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 Redirect to root path when visiting /ci 2016-03-29 08:04:17 +02:00
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 Merge branch 'master' into issue_12658 2016-03-21 23:22:21 +01:00
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 Improved confirmation UX 2016-04-21 20:20:09 -04:00
dashboard_controller.rb Restrict starred projects to viewable ones 2016-05-10 18:13:52 +01:00
emojis_controller.rb
groups_controller.rb Projects on group page should be sorted by last activity instead of id/created_at 2016-04-14 11:00:24 +02:00
health_check_controller.rb Support token header for health check token, and general cleanup of the health_check feature. 2016-05-11 17:27:08 -07:00
help_controller.rb Simplify random user generation. 2016-04-16 16:00:30 -04:00
invites_controller.rb
jwt_controller.rb Improve Gitlab::Auth method names 2016-06-10 14:51:16 +02:00
namespaces_controller.rb Prevent projects to have higher visibility than groups 2016-03-10 10:38:36 -03:00
notification_settings_controller.rb Merge master into issue_12758 2016-06-17 14:29:11 -03:00
omniauth_callbacks_controller.rb Enable Style/MethodDefParentheses rubocop cop 2016-05-30 12:08:53 +02:00
passwords_controller.rb
profiles_controller.rb Merge branch 'master' into issue_7959 2016-03-22 11:13:27 -05:00
projects_controller.rb Provide default branch/file path for ProjectsController#show 2016-06-20 21:44:22 +02:00
registrations_controller.rb current_user.confirmed_at.present? => current_user.confirmed? 2016-05-20 13:52:42 -04:00
root_controller.rb Implementing 'Groups View' and 'TODOs View' as options for dashboard preferences. 2016-03-24 19:59:54 +01:00
search_controller.rb Updated based on feedback 2016-04-26 09:04:35 +01:00
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 user routings refactor 2016-05-08 15:27:33 +07:00
uploads_controller.rb
users_controller.rb Group the contributing calendar by day 2016-05-16 12:22:17 +01:00