Add latest changes from gitlab-org/gitlab@master

This commit is contained in:
GitLab Bot 2022-10-29 15:10:48 +00:00
parent bee7fbe958
commit 6c278c9068
1 changed files with 3 additions and 1 deletions

View File

@ -37,7 +37,9 @@ module StubFeatureFlags
# Enable `ci_live_trace` feature flag only on the specified projects.
def stub_feature_flags(features)
features.each do |feature_name, actors|
warn "Invalid Feature Flag #{feature_name} stubbed" unless Feature::Definition.get(feature_name)
unless Feature::Definition.get(feature_name)
ActiveSupport::Deprecation.warn "Invalid Feature Flag #{feature_name} stubbed"
end
# Remove feature flag overwrite
feature = Feature.get(feature_name) # rubocop:disable Gitlab/AvoidFeatureGet