Migrate away from select2 in ee/app/views/projects/mirrors/_mirror_repos_form.html.haml
In ee/app/views/projects/mirrors/_mirror_repos_form.html.haml, we render a select2-based input that seems to be always disabled, with the value set to the current user:
If this input can't be interacted with, we should consider using a simpler component to render, and getting rid of the underlying select2 implementation.
Implementation plan
-
Migrate mirror_user_id_selectto a text input or other appropriate alternative.- Keep in mind that, in the current state, the input value likely is the current user's ID. If the backend service that handles the submission requires an ID, then migrating to a text input might not work as the value would then be the user's name. We would likely need to hold the ID in a
hiddeninput then.
- Keep in mind that, in the current state, the input value likely is the current user's ID. If the backend service that handles the submission requires an ID, then migrating to a text input might not work as the value would then be the user's name. We would likely need to hold the ID in a
-
Cleanup ee/app/assets/javascripts/pages/projects/settings/repository/show/ee_mirror_repos.js. We should be able to get rid ofselect2-related code at the very least.
Edited by Paul Gascou-Vaillancourt
