Commit 70a667f0 authored by Igor Drozdov's avatar Igor Drozdov

Merge branch 'sh-scope-lfs-check-ff-by-project' into 'master'

Scope lfs_check feature flag by project

See merge request gitlab-org/gitlab!66204
parents 3ad37425 455c4f7c
......@@ -7,9 +7,9 @@ module Gitlab
ERROR_MESSAGE = 'LFS objects are missing. Ensure LFS is properly set up or try a manual "git lfs push --all".'
def validate!
# This feature flag is used for disabling integrify check on some envs
# This feature flag is used for disabling integrity check on some envs
# because these costy calculations may cause performance issues
return unless Feature.enabled?(:lfs_check, default_enabled: true)
return unless Feature.enabled?(:lfs_check, project, default_enabled: :yaml)
return unless project.lfs_enabled?
......
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