Skip to content

Replace select2 box with simple text field to display Mirror User

What does this MR do and why?

It replaces the select2 component used in the Repository settings page to display the Repository mirror’s User ID with a simple text field.

Context

The commit c902b404 disabled the user’s capability to change the Repository Mirror’s user via the web UI. That commit also changed the web UI to always display the current user in the Mirror User field.

Given these changes, we can safely replace the select2 box with a text field that displays information from a single user.

Screenshots or screen recordings

Before After
mirror_user_before Screen_Shot_2022-09-30_at_3.46.13_PM

How to set up and validate locally

  1. Open project settings.
  2. Open the repository settings page.
  3. Expand the "Mirroring repositories" section.
  4. You should see that the Mirror user field displays the same information as the previous select2 box.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #374016 (closed)

Edited by Robert Hunt

Merge request reports

Loading