Skip to content

Geo - Group-level wikis where repositories do not exist on the Geo primary fails to sync

Summary

Group-level wikis where repositories do not exist on the primary GEo site are not marked as successfully synced on secondary sites. This happens because we are looking for the wrong error message in Geo::FrameworkRepositorySyncService#sync_repository. For group repositories we should look for replicator.class.git_access_class.error_message(:no_group_repo) rather than replicator.class.git_access_class.error_message(:no_repo).

What is the expected correct behavior?

Group wikis where repositories do not exist on the primary site must be marked as successfully synced on Geo secondary sites.

Possible fixes

Add a helper method to Geo::RepositoryReplicatorStrategy to return the proper error message for each datatype.

Edited by Douglas Barbosa Alexandre