Merge branch 'jc-feature-flag-find-all-tags' into 'master'
Add feature flag for FindAllTags See merge request gitlab-org/gitlab-ce!25615
This commit is contained in:
commit
1557289ce3
|
@ -228,7 +228,7 @@ module Gitlab
|
||||||
result
|
result
|
||||||
end
|
end
|
||||||
|
|
||||||
SERVER_FEATURE_FLAGS = %w[].freeze
|
SERVER_FEATURE_FLAGS = %w[go-find-all-tags].freeze
|
||||||
|
|
||||||
def self.server_feature_flags
|
def self.server_feature_flags
|
||||||
SERVER_FEATURE_FLAGS.map do |f|
|
SERVER_FEATURE_FLAGS.map do |f|
|
||||||
|
@ -244,7 +244,9 @@ module Gitlab
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.feature_enabled?(feature_name)
|
def self.feature_enabled?(feature_name)
|
||||||
Feature.enabled?("gitaly_#{feature_name}")
|
Feature::FlipperFeature.table_exists? && Feature.enabled?("gitaly_#{feature_name}")
|
||||||
|
rescue ActiveRecord::NoDatabaseError
|
||||||
|
false
|
||||||
end
|
end
|
||||||
|
|
||||||
# Ensures that Gitaly is not being abuse through n+1 misuse etc
|
# Ensures that Gitaly is not being abuse through n+1 misuse etc
|
||||||
|
|
Loading…
Reference in New Issue