Commit 88900bc6 authored by Jason Goodman's avatar Jason Goodman Committed by Shinya Maeda

Enable new version feature flags for self managed instances

Default feature_flags_new_version flag to enabled
parent 87da1abf
......@@ -12,7 +12,7 @@ class Projects::FeatureFlagsController < Projects::ApplicationController
before_action do
push_frontend_feature_flag(:feature_flag_permissions)
push_frontend_feature_flag(:feature_flags_new_version, project)
push_frontend_feature_flag(:feature_flags_new_version, project, default_enabled: true)
end
def index
......@@ -103,7 +103,7 @@ class Projects::FeatureFlagsController < Projects::ApplicationController
end
def new_version_feature_flags_enabled?
::Feature.enabled?(:feature_flags_new_version, project)
::Feature.enabled?(:feature_flags_new_version, project, default_enabled: true)
end
def create_params
......
......@@ -24,7 +24,7 @@ class FeatureFlagsFinder
private
def feature_flags
if Feature.enabled?(:feature_flags_new_version, project)
if Feature.enabled?(:feature_flags_new_version, project, default_enabled: true)
project.operations_feature_flags
else
project.operations_feature_flags.legacy_flag
......
......@@ -46,7 +46,7 @@ module FeatureFlags
end
def new_version_feature_flags_enabled?
::Feature.enabled?(:feature_flags_new_version, project)
::Feature.enabled?(:feature_flags_new_version, project, default_enabled: true)
end
end
end
---
title: Enable new version feature flags by default
merge_request: 35192
author:
type: added
......@@ -246,7 +246,7 @@ module API
end
def feature_flags_new_version_enabled?
Feature.enabled?(:feature_flags_new_version, user_project)
Feature.enabled?(:feature_flags_new_version, user_project, default_enabled: true)
end
def rename_key(hash, old_key, new_key)
......
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