gitlab-org--gitlab-foss/app/services
Douwe Maan 374b8e95c3 Merge branch '21076-deleted-merged-branches' into 'master'
Add button to delete all merged branches

## What does this MR do?

It adds a button to the branches page that the user can use to delete all the branches that are already merged. This can be used to clean up all the branches that were forgotten to delete while merging MRs.

**Note**  
~~This MR is WIP until MR !6408 is merged.~~

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

The UX of the actual "Delete merged branches" button.

## Why was this MR needed?

Fixes #21076

## Screenshots
![Branches page without "Delete all merged" button](/uploads/3a2936a83c3547a0fce92a74af880a2d/Screen_Shot_2016-10-17_at_20.06.30.png)

Before:
![Screen_Shot_2016-10-17_at_20.07.11](/uploads/55efcebf4e0a45dbfc70ba4a11ca152c/Screen_Shot_2016-10-17_at_20.07.11.png)


After:

## Does this MR meet the acceptance criteria?

- [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added
- [x] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)
- [x] API support added
- Tests
  - [x] Added for this feature/bug
  - [x] All builds are passing
- [x] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html)
- [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)

## What are the relevant issue numbers?

Closes #21076

See merge request !6449
2016-11-15 12:08:22 +00:00
..
auth Merge branch 'unauthenticated-container-registry-access' into 'security' 2016-11-09 12:28:29 +01:00
boards
ci
commits
files
groups
issuable
issues Process commits in a separate worker 2016-11-07 13:11:44 +01:00
labels
members
merge_requests
milestones
notes Does not raise error when Note not found when processing NewNoteWorker 2016-11-11 22:54:11 -02:00
oauth2
projects
protected_branches
search
slash_commands
wiki_pages
akismet_service.rb
audit_event_service.rb
base_service.rb
compare_service.rb
create_branch_service.rb
create_deployment_service.rb
create_release_service.rb
create_snippet_service.rb
create_tag_service.rb
delete_branch_service.rb
delete_merged_branches_service.rb Add button to delete all merged branches 2016-11-09 21:04:03 +01:00
delete_tag_service.rb
delete_user_service.rb
destroy_group_service.rb
event_create_service.rb
git_hooks_service.rb
git_push_service.rb Process commits in a separate worker 2016-11-07 13:11:44 +01:00
git_tag_push_service.rb
gravatar_service.rb
ham_service.rb
import_export_clean_up_service.rb
issuable_base_service.rb
notification_service.rb
repair_ldap_blocked_user_service.rb
repository_archive_clean_up_service.rb
spam_service.rb
system_hooks_service.rb
system_note_service.rb
test_hook_service.rb
todo_service.rb
update_release_service.rb
update_snippet_service.rb
user_agent_detail_service.rb