gitlab-org--gitlab-foss/app/helpers
Douwe Maan d57d892e3f Merge branch 'assign-issues-for-merge-request-18876' into 'master'
Ability to bulk assign issues to author of merge request

## What does this MR do?
Provides a link to auto-assign issues to the author of a merge request, when they are mentioned as being closed by the MR.

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


## Why was this MR needed?
To help avoid working on a MR without having assigned related issues to self

## What are the relevant issue numbers?
Fixes #18876 

## Screenshots (if relevant)
![ScreenShot-P216](/uploads/1af5e71a0a0ff0a60c5d7b54c0e09d9c/ScreenShot-P216.png)

## Tasks
- [x] Refactor or move away from using `BulkUpdateService`
- [x] ~~Consider alternate link message when only a subset of issues will be assigned~~
- [x] Minimize repeated calls to expensive `closes_issues` method
- [x] Move away from using inflector for pluralization and fix flash message
- [x] Change auth `before_action` and fallback to error flash message
- [x] Shouldn't overwrite current assignee if one exists

## 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 [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 !5725
2016-10-11 17:20:38 +00:00
..
appearances_helper.rb Enable CacheMarkdownField for the remaining models 2016-10-07 02:54:26 +01:00
application_helper.rb Cache the issuable counters for 2 minutes 2016-09-30 12:02:54 +02:00
application_settings_helper.rb Enable CacheMarkdownField for the remaining models 2016-10-07 02:54:26 +01:00
auth_helper.rb Add a `U2fRegistrations` table/model. 2016-06-06 12:50:31 +05:30
avatars_helper.rb Removes 'hidden-xs' class from user_avatar helper in order for it to be visible in environments list. 2016-10-06 11:32:58 +01:00
award_emoji_helper.rb Fix tests for Snippets toggling awards 2016-09-19 19:53:09 +03:00
blob_helper.rb Move editor paths to helper 2016-08-19 16:17:14 +01:00
branches_helper.rb implements the basic filter functionality 2016-07-19 19:30:10 +01:00
broadcast_messages_helper.rb Enable CacheMarkdownField for the remaining models 2016-10-07 02:54:26 +01:00
button_helper.rb Added copy file path button to diffs 2016-10-10 09:59:35 +01:00
ci_status_helper.rb Commit status icon now links to pipelines tab of commit view 2016-09-27 22:11:13 +01:00
commits_helper.rb Eliminate unneeded calls to Repository#blob_at when listing commits with no path 2016-08-17 17:07:08 +02:00
compare_helper.rb Project tools visibility level 2016-09-01 11:47:59 -03:00
dashboard_helper.rb
diff_helper.rb Avoid commit lookup on diff_helper 2016-08-10 13:09:07 +02:00
dropdowns_helper.rb Uses the selected values from the controller not the params 2016-07-20 10:48:02 +01:00
emails_helper.rb Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
events_helper.rb Remove `event_to_atom` helper 2016-05-23 12:37:40 -04:00
explore_helper.rb Enable Style/SpaceAroundEqualsInParameterDefault cop 2016-08-06 04:03:01 +02:00
external_wiki_helper.rb speed up ExternalWikiService#get_project_wiki_path 2016-07-19 09:06:58 -04:00
form_helper.rb Standardize the way we check for and display form errors 2016-04-04 21:37:07 -04:00
git_helper.rb Improve merge request version feature 2016-09-07 10:24:48 +03:00
gitlab_markdown_helper.rb Enable CacheMarkdownField for the remaining models 2016-10-07 02:54:26 +01:00
gitlab_routing_helper.rb Merge branch 'and-you-get-awards' into 'master' 2016-09-21 15:22:28 +00:00
graph_helper.rb
groups_helper.rb Syntax fixes and better tests for helper methods. Updated docs. 2016-09-15 14:10:49 -05:00
icons_helper.rb audit log UI update 2016-03-02 17:06:01 +00:00
import_helper.rb Don't create groups for unallowed users when importing projects 2016-08-31 12:55:45 -03:00
issuables_helper.rb Merge branch 'master' into revert-c676283b 2016-10-03 09:10:20 +01:00
issues_helper.rb Optimize the `award_user_list` helper spec 2016-10-07 16:34:58 +02:00
javascript_helper.rb Revert Subresource Integrity pending a fix for Firefox's incorrect hashing implementation. 2016-06-27 07:47:33 -06:00
kerberos_spnego_helper.rb Groundwork for Kerberos SPNEGO (EE feature) 2016-07-01 11:46:56 +02:00
labels_helper.rb Updated how the label toggle gets the text 2016-07-20 10:48:02 +01:00
lfs_helper.rb Use GitLab Routing helpers for the documentation URL in `LfsHelper` 2016-09-26 17:23:00 -05:00
members_helper.rb Show member roles to all users on members page 2016-08-11 11:08:07 -05:00
merge_requests_helper.rb Added link to bulk assign issues to MR author. (Issue #18876) 2016-10-06 13:37:37 +01:00
milestones_helper.rb Merge branch 'master' into revert-c676283b 2016-10-03 09:10:20 +01:00
namespaces_helper.rb few fixes based on MR feedback 2016-09-20 10:15:20 +02:00
nav_helper.rb remove dead code - 'collapsed_nav' cookie no longer used since a1fbdbb6 (see MR !4579) 2016-09-07 14:02:21 -05:00
notes_helper.rb Fix note form hint showing slash commands supported for commits 2016-09-20 13:58:14 +02:00
notifications_helper.rb merge master into issue_3359_3 2016-06-29 11:04:18 -03:00
page_layout_helper.rb ensure the 'fixed layout' preference is honored whenever possible 2016-09-20 00:51:00 -05:00
preferences_helper.rb Implementing 'Groups View' and 'TODOs View' as options for dashboard preferences. 2016-03-24 19:59:54 +01:00
projects_helper.rb Enable Lint/StringConversionInInterpolation cop and autocorrect offenses 2016-10-03 16:09:57 +02:00
runners_helper.rb
search_helper.rb Make search results use the markdown cache columns, treating them consistently 2016-10-07 02:54:26 +01:00
selects_helper.rb fix group links 404 2016-10-05 09:57:54 +01:00
sentry_helper.rb Fix Sentry not reporting right program for Sidekiq workers 2016-08-25 19:42:52 -07:00
services_helper.rb Add option to confidential issues events to trigger services 2016-08-31 18:34:45 -03:00
sidekiq_helper.rb Remove original regexp 2016-09-08 19:41:25 +02:00
snippets_helper.rb Reordered dropdown options 2016-09-07 15:12:03 +01:00
sorting_helper.rb Restore `Largest repository` sort option on admin projects page 2016-08-15 16:01:23 -05:00
submodule_helper.rb
tab_helper.rb Use start_with? instead of regex 2016-05-24 00:23:23 +02:00
tags_helper.rb filters tags by name 2016-08-31 11:42:33 +01:00
time_helper.rb Cleanup the use of duration and optimize some queries 2016-08-10 23:12:02 +08:00
todos_helper.rb Removed try method call on due date 2016-10-03 15:07:35 +01:00
tree_helper.rb Update tree view to sort folders with submodules 2016-08-09 14:08:47 +01:00
triggers_helper.rb
u2f_helper.rb Load Javascript U2F library selectively. 2016-07-14 08:19:09 +05:30
version_check_helper.rb
visibility_level_helper.rb Address feedback 2016-03-22 00:09:20 +01:00
workhorse_helper.rb Verify JWT messages from gitlab-workhorse 2016-09-05 15:05:31 +02:00