Skip to content

Fix projects with remote mirrors asynchronously destruction (using pending_delete)

Paco Guzman requested to merge 1021-delete-project-with-remote-mirrors into master

When we update the flag pending_delete to true and later try to destroy the remote mirror (through association callbacks) the remote mirror try to load the project, but it is out of the default scope so it just return nil.

As we need the project to remove the reference to the remote mirror but we’re going to delete the project and its repository is not needed to touch the repository to just remove that reference, so we just skip that step in that case

Closes #1021 (closed)

Merge request reports