Hide mirror repository pane when mirror_available setting is off
What does this MR do and why?
Task name: Don't show 'Run CI/CD for an External Repository' pane when mirror_available setting is disabled
We were showing the Run CI/CD for an External Repository pane even through the setting was disabled. In this MR, we are actually reading the setting mirror_available and based on it (and other checks that were already in place), we either show or hide the pane.
This MR is a quick fix for an issue raised in issue I will create a followup issue to check the other credentials and rules that we have in place for user to be able to create repository mirrors.
Screenshots or screen recordings
Should be checked in EE mode and FOSS mode.
gdk start -> EE mode
Toggle setting

Mirror repository setting enabled

Mirror repository setting disabled

FOSS_ONLY=1 gdk start -> FOSS mode
The repository mirroring is not available in FOSS so the tile should be not visible regardless of the setting.
How to set up and validate locally
Setting enabled:
- As admin, go to Settings > Repositories > Repository mirroring and enable the setting.
- As admin, go to nav bar, plus icon and click on 'New project/repository', verify that you can see the pane Run CI/CD for an External Repository
- As maintainer/developer/reporter etc, go to nav bar, plus icon and click on 'New project/repository', verify that you can see the pane Run CI/CD for an External Repository
Setting disabled:
- As admin, go to Settings > Repositories > Repository mirroring and disable the setting.
- As admin, go to nav bar, plus icon and click on 'New project/repository', verify that you can see the pane Run CI/CD for an External Repository
- As maintainer/developer/reporter etc, go to nav bar, plus icon and click on 'New project/repository', verify that you can see the pane Run CI/CD for an External Repository
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.