Skip to content

Use ReplicateRepository when moving repo storage

James Fargher requested to merge use_replicate_repo_for_repo_move into master

What does this MR do?

gitaly#2428 (closed)

  • Replaces the use of the Gitaly RPC FetchInternalRemote with ReplicateRepository
  • Removes special handling of same storage moves as ReplicateRepository already handles this (deletes RepositoryAlreadyMoved)
  • Fixes bug in TestEnv that would delete the second_storage directory. It's use is normally mocked, but the end-to-end tests here for the new RPC now use it

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • 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
Edited by James Fargher

Merge request reports