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:

Namespace___Repository_Settings___Mirroring_repositories

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_select to 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 hidden input then.
  • Cleanup ee/app/assets/javascripts/pages/projects/settings/repository/show/ee_mirror_repos.js. We should be able to get rid of select2-related code at the very least.
Edited by Paul Gascou-Vaillancourt