Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-08-19 12:08:42 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-08-19 12:08:42 +0300
commitb76ae638462ab0f673e5915986070518dd3f9ad3 (patch)
treebdab0533383b52873be0ec0eb4d3c66598ff8b91 /lib/feature.rb
parent434373eabe7b4be9593d18a585fb763f1e5f1a6f (diff)
Add latest changes from gitlab-org/gitlab@14-2-stable-eev14.2.0-rc42
Diffstat (limited to 'lib/feature.rb')
-rw-r--r--lib/feature.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/feature.rb b/lib/feature.rb
index 453ecc8255a..f8d34e9c386 100644
--- a/lib/feature.rb
+++ b/lib/feature.rb
@@ -36,7 +36,7 @@ class Feature
end
def persisted_names
- return [] unless Gitlab::Database.exists?
+ return [] unless Gitlab::Database.main.exists?
# This loads names of all stored feature flags
# and returns a stable Set in the following order:
@@ -56,7 +56,7 @@ class Feature
# use `default_enabled: true` to default the flag to being `enabled`
# unless set explicitly. The default is `disabled`
- # TODO: remove the `default_enabled:` and read it from the `defintion_yaml`
+ # TODO: remove the `default_enabled:` and read it from the `definition_yaml`
# check: https://gitlab.com/gitlab-org/gitlab/-/issues/30228
def enabled?(key, thing = nil, type: :development, default_enabled: false)
if check_feature_flags_definition?
@@ -73,7 +73,7 @@ class Feature
# During setup the database does not exist yet. So we haven't stored a value
# for the feature yet and return the default.
- return default_enabled unless Gitlab::Database.exists?
+ return default_enabled unless Gitlab::Database.main.exists?
feature = get(key)