gitlab-org--gitlab-foss/spec/controllers/projects
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
..
boards Merge branch 'master' into issue-board-sidebar 2016-10-19 08:44:55 +01:00
avatars_controller_spec.rb fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
blame_controller_spec.rb
blob_controller_spec.rb Use user from let instead recreate in before 2016-10-09 20:31:28 +05:00
boards_controller_spec.rb Update Projects::BoardsController#show to look up for a specific board 2016-10-11 11:39:05 -03:00
branches_controller_spec.rb Add button to delete all merged branches 2016-11-09 21:04:03 +01:00
commit_controller_spec.rb refactors tests because of gitlab-test repository changes 2016-10-11 16:33:06 +01:00
commits_controller_spec.rb Allow browsing branches that end with '.atom' 2016-10-11 13:31:12 +01:00
compare_controller_spec.rb fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
discussions_controller_spec.rb Address review feedback 2016-08-16 11:04:26 -05:00
environments_controller_spec.rb Incorporate feedback 2016-07-29 13:54:45 +02:00
find_file_controller_spec.rb
forks_controller_spec.rb fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
graphs_controller_spec.rb Fix indentation and change inner matcher 2016-10-13 13:08:19 +02:00
group_links_controller_spec.rb fix group links 404 2016-10-05 09:57:54 +01:00
imports_controller_spec.rb
issues_controller_spec.rb Refresh todos count cache when an Issue/MR is deleted 2016-09-08 15:50:07 -03:00
labels_controller_spec.rb Pass user instance to Labels::FindOrCreateService or skip_authorization: true 2016-10-28 11:31:45 +02:00
merge_requests_controller_spec.rb Ensure labels are loaded on "show" methods of MR 2016-11-11 14:06:43 -04:00
milestones_controller_spec.rb Optimize Event queries by removing default order 2016-10-27 20:07:11 -03:00
notes_controller_spec.rb Address review feedback 2016-08-16 11:04:26 -05:00
project_members_controller_spec.rb Implement CreateMembers service to make controller thin 2016-11-01 10:17:04 +02:00
protected_branches_controller_spec.rb fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
raw_controller_spec.rb fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
refs_controller_spec.rb
repositories_controller_spec.rb Fix test failure by accessing Content-Type header directly. 2016-09-27 20:52:41 -06:00
services_controller_spec.rb Fix missing flash messages on service edit page 2016-09-05 14:13:15 +03:00
snippets_controller_spec.rb Project tools visibility level 2016-09-01 11:47:59 -03:00
tags_controller_spec.rb Respond with 404 Not Found for non-existent tags 2016-10-05 19:28:39 +02:00
templates_controller_spec.rb Allow Member.add_user to handle access requesters 2016-09-28 09:43:00 +02:00
todo_controller_spec.rb Cache todos pending/done dashboard query counts 2016-07-12 18:57:52 +02:00
tree_controller_spec.rb Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
uploads_controller_spec.rb Get rid of `is_image` in FileUploader 2016-07-19 18:51:09 +02:00