Skip to content

Support repository moved message with all container types

Markus Koller requested to merge 207869-repository-moved-message into master

What does this MR do?

Rename the ProjectMoved push check to ContainerMoved, and use the repository identifier to store messages in Redis instead of the project ID.

Previously this only worked in a project context, but now supports all repository containers and also adds the container type in the push message.

To handle the transition from the previous message key to the new one, we query and delete both keys in Redis.

Implements #292030 (closed)

QA

To test locally:

  1. Create a project/snippet/wiki and clone it locally.
  2. Change the path of the project/group (this is not possible for personal snippets).
    • Go to Settings -> General -> Advanced -> Change path / Change group URL
  3. Create a commit locally and push it.

Group wiki:

image

Project repository:

image

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #207869 (closed)

Edited by Markus Koller

Merge request reports