Skip to content

Move the container registry visibility setting to _not_ be nested within the Repository visibility setting

Reuben Pereira requested to merge 18792-move-container-registry-input into master

What does this MR do?

Currently, the Container Registry visibility setting is nested within the Repository visibility setting. Setting the Repository to private forces the Container Registry to also be private. Disabling the Repository also disables the Container Registry toggle button. But these changes do not actually happen on the backend. Also, via the public API, we can disable the Repository while keeping the Container Registry enabled. Container Registry visibility should not be affected by Repository visibility since they are completely separate features.

This MR:

  1. Moves the Container Registry visibility setting so that it is not nested within the Repository setting
  2. Changes the Container Registry visibility setting to not be affected by the Repository setting.
  3. Since the CI/CD setting is affected by the Repository visibility, I've moved it into the Repository div, so that it gets nested under Repository.

Screenshots or Screencasts (strongly suggested)

Before After
move_container_registry_visibility_before move_container_registry_visibility_after
container_registry_setting_ui_before_move container_registry_setting_ui_after_move

How to setup and validate locally (strongly suggested)

  1. Open any project in GDK.
  2. Go to Settings > General > Visibility, project features, permissions.
  3. Try toggling the Container Registry and Repository settings.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #18792 (closed)

Edited by Reuben Pereira

Merge request reports