Commit 1557289c authored by Lin Jen-Shin's avatar Lin Jen-Shin

Merge branch 'jc-feature-flag-find-all-tags' into 'master'

Add feature flag for FindAllTags

See merge request gitlab-org/gitlab-ce!25615
parents 3db21ac0 3a30dffd
...@@ -228,7 +228,7 @@ module Gitlab ...@@ -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 ...@@ -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
......
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