Skip to content

Use Gitlab.com in ContainerRepository#migrated?

What does this MR do and why?

Closes #379010 (closed)

In this MR, we improve the ContainerRepository#migrated? function. Today, this works great on gitlab.com but not on self-managed as it will always return true even if we do not have any migrated container repositories for self-managed.

As the migrations has been long time done, we can now replaced the timestamp check with Gitlab.com? as mentioned here. This is a short/mid-term action and it will be updated once we start to migrate self-managed in &5521.

How to set up and validate locally

Via the Rails console, ContainerRepository#migrated? should return a true if you are in Gitlab.com?, otherwise, it should be false.

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 #379010 (closed)

Edited by Adie (she/her)

Merge request reports

Loading