Geo - Change wiki replication/verification code to maintain both tracking tables
What does this MR do and why?
Part of #367928 (closed), this MR:
- Update the
Geo::WikiSyncService
to track the wiki replication state for project wiki repositories on both tablesproject_repository_states
andproject_wiki_repository_states
. - Update the
Geo:: RepositoryVerificationSecondaryService
to track the wiki verification state for project wiki repositories on both tablesproject_repository_states
andproject_wiki_repository_states
.
Migration output
gitlab % bundle exec rails db:migrate:up:geo VERSION=20221017195204
geo: == 20221017195204 CreateProjectWikiRepositoryRegistry: migrating ==============
geo: -- create_table(:project_wiki_repository_registry, {:id=>:bigserial, :force=>:cascade})
geo: -- quote_column_name(:verification_failure)
geo: -> 0.0000s
geo: -- quote_column_name(:last_sync_failure)
geo: -> 0.0000s
geo: -> 0.0165s
geo: == 20221017195204 CreateProjectWikiRepositoryRegistry: migrated (0.0169s) =====
% bundle exec rails db:migrate:down:geo VERSION=20221017195204
geo: == 20221017195204 CreateProjectWikiRepositoryRegistry: reverting ==============
geo: -- drop_table(:project_wiki_repository_registry, {:id=>:bigserial, :force=>:cascade})
geo: -> 0.0039s
geo: == 20221017195204 CreateProjectWikiRepositoryRegistry: reverted (0.0073s) =====
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.
Related issues
Related to #367928 (closed)
Edited by euko