Public/Private fields are switched when creating a new "imported" repository

Summary

When cloning a repository into a private project, the labels don't match the descriptions in the visibility settings.

Steps to reproduce

Create a new project in a private group. Select "import" as the repository type, then "URL" as the source. In the form that shows up, scroll to the visibility settings. You will see that private's description is what I'd expect for public's, and vice versa.

image

Example Project

N/A

What is the current bug behavior?

UX Bug. Private/public label and description don't match.

What is the expected correct behavior?

Private is only approved users, public is... well... public.

Relevant logs and/or screenshots

Screen shot posted above.

Here's the copy/pasted text:

Visibility Level
Private

The project can be accessed without any authentication.
Internal

The project can be accessed by any logged in user except external users.
Public

Project access must be granted explicitly to each user. If this project is part of a group, access is granted to members of the group.

Output of checks

N/A

Results of GitLab environment info

This is on public gitlab.com.

Results of GitLab application Check

Possible fixes

N/A

Edited by 🤖 GitLab Bot 🤖