Fix projects with remote mirrors asynchronously destruction (using pending_delete)
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
Showing
Please register or sign in to comment