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 |
---|---|
How to set up and validate locally
- Open project settings.
- Open the repository settings page.
- Expand the "Mirroring repositories" section.
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #374016 (closed)
Edited by Robert Hunt