Allow to move project repositories in hidden/pending_delete state
What does this MR do and why?
Contributes to https://gitlab.com/gitlab-org/gitlab/-/issues/430064
Problem
It's not possible to move projects in hidden/pending_delete state by the admin. That blocks the Gitaly migration.
Solution
Permit to schedule project moves for hidden/pending_delete projects.
Screenshots or screen recordings
Before | After |
---|---|
![]() |
![]() |
How to set up and validate locally
- Open Rails console
- Temporary mark the project as hidden
Project.last.update(hidden: true)
- Visit
http://127.0.0.1:3000/api/v4/projects/<project_id>/repository_storage_moves
page as an admin - You should see a list of repository storage moves (most probably just an empty array)
- Switch to master branch
- Visit
http://127.0.0.1:3000/api/v4/projects/<project_id>/repository_storage_moves
page as an admin - You should see
Project not found
error
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.
Edited by Vasilii Iakliushin