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?
-
Changes in 8.13 require
Referable
s that don't have a project reference to accept two arguments -from_project
andtarget_project
. -
User#to_reference
was not changed to accept thetarget_project
(even though it is not used). Moving an issue containing a user reference would throw a "invalid number of arguments" exception. -
The regression was introduced in c8b2b3f7, which expects all
Referable
s that don't respond to:project
to have ato_reference
method that takes two arguments.
Does this MR meet the acceptance criteria?
- Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Branch has no merge conflicts with master
(if it does - rebase it please) -
Squashed related commits together
What are the relevant issue numbers?
- Closes #23662 (closed)