Update users_select function to limit number of parameters and implement an object option
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
The following discussion from !46738 (merged) should be addressed:
-
@f_caplette started a discussion: (+1 comment) Issue I am again not super familiar with this part of the code, but we do recommend limiting the number of arguments passed to a function to 3 https://docs.gitlab.com/ee/development/fe_guide/style/javascript.html#limit-number-of-parameters
To circumvent this, we should at least use an
object
to pass all of these params here, which we can deconstruct right in the function definition.
Warning: This is a shared component so please tread carefully!
Edited by 🤖 GitLab Bot 🤖