c003fc5091
Fix `User#to_reference`
## What does this MR do?
Fix the method signature of `User#to_reference` so that moving an issue with a user reference does not throw a "invalid number of arguments" exception.
## Why was this MR needed?
1. Changes in 8.13 require `Referable`s that don't have a project
reference to accept two arguments - `from_project` and
`target_project`.
2. `User#to_reference` was not changed to accept the
`target_project` (even though it is not used). Moving an issue
containing a user reference would throw a "invalid number of
arguments" exception.
3. The regression was introduced in [c8b2b3f7](
|
||
---|---|---|
.. | ||
auth | ||
boards | ||
ci | ||
files | ||
groups | ||
issuable | ||
issues | ||
labels | ||
members | ||
merge_requests | ||
milestones | ||
notes | ||
projects | ||
protected_branches | ||
search | ||
slash_commands | ||
compare_service_spec.rb | ||
create_deployment_service_spec.rb | ||
create_release_service_spec.rb | ||
create_snippet_service_spec.rb | ||
create_tag_service_spec.rb | ||
delete_tag_service_spec.rb | ||
delete_user_service_spec.rb | ||
destroy_group_service_spec.rb | ||
event_create_service_spec.rb | ||
git_hooks_service_spec.rb | ||
git_push_service_spec.rb | ||
git_tag_push_service_spec.rb | ||
import_export_clean_up_service_spec.rb | ||
notification_service_spec.rb | ||
repair_ldap_blocked_user_service_spec.rb | ||
repository_archive_clean_up_service_spec.rb | ||
search_service_spec.rb | ||
system_hooks_service_spec.rb | ||
system_note_service_spec.rb | ||
test_hook_service_spec.rb | ||
todo_service_spec.rb | ||
update_release_service_spec.rb | ||
update_snippet_service_spec.rb |