Commit 7726ce69 authored by Etienne Baqué's avatar Etienne Baqué

Merge branch 'mk/dry-up-verification-state-include' into 'master'

Refactor Geo::VerifiableRegistry module

See merge request gitlab-org/gitlab!56175
parents a773c2ea d8cc4f9a
......@@ -319,10 +319,7 @@ For example, to add support for files referenced by a `Widget` model with a
# frozen_string_literal: true
class Geo::WidgetRegistry < Geo::BaseRegistry
include Geo::ReplicableRegistry
# TODO: Include VerificationState in VerifiableRegistry
# https://gitlab.com/gitlab-org/gitlab/-/issues/298811
include ::Gitlab::Geo::VerificationState
include ::Geo::ReplicableRegistry
include ::Geo::VerifiableRegistry
MODEL_CLASS = ::Widget
......
# frozen_string_literal: true
module Geo::VerifiableRegistry
module Geo
module VerifiableRegistry
extend ActiveSupport::Concern
include ::Gitlab::Geo::VerificationState
class_methods do
extend ::Gitlab::Utils::Override
......@@ -77,4 +79,5 @@ module Geo::VerifiableRegistry
verification_succeeded_with_checksum!(checksum, calculation_started_at)
end
end
end
end
......@@ -2,7 +2,6 @@
class Geo::PackageFileRegistry < Geo::BaseRegistry
include ::Geo::ReplicableRegistry
include ::Gitlab::Geo::VerificationState
include ::Geo::VerifiableRegistry
MODEL_CLASS = ::Packages::PackageFile
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment