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
Referables that don't have a project reference to accept two arguments -
User#to_referencewas 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.
The regression was introduced in c8b2b3f7, which expects all
Referables that don't respond to
:projectto have a
to_referencemethod that takes two arguments.
Does this MR meet the acceptance criteria?
- 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)