Commit 245ced26 authored by Patrick Steinhardt's avatar Patrick Steinhardt

checks: Make push rules available in BaseBulkChecker

Push rules are only available in the Enterprise Edition and are thus
mixed into the BaseSingleChecker via a separate EE module which extends
the base class. This only makes push rules available for this single
checks: bulk checks ain't got any access to them, and until now they
haven't needed any either. We're about to refactor push rules to allow
batching of access checks though, so we need access to push rules in
both classes.

Move the push rule implementation into the BaseChecker class. This is
the parent class of both BaseSingleChecker and BaseBulkChecker, so it
will make the function available to both.
parent 7492453a
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
module EE module EE
module Gitlab module Gitlab
module Checks module Checks
module BaseSingleChecker module BaseChecker
extend ActiveSupport::Concern extend ActiveSupport::Concern
include ::Gitlab::Utils::StrongMemoize include ::Gitlab::Utils::StrongMemoize
......
...@@ -30,5 +30,3 @@ module Gitlab ...@@ -30,5 +30,3 @@ module Gitlab
end end
end end
end end
Gitlab::Checks::BaseSingleChecker.prepend_mod_with('Gitlab::Checks::BaseSingleChecker')
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