Commit fc5ebdd2 authored by Matthias Käppler's avatar Matthias Käppler

Merge branch 'update-gitlab-experiment-to-0.7.1' into 'master'

Release gitlab-experiment version 0.7.1

See merge request gitlab-org/gitlab!84437
parents 7ef72f93 39a525a2
......@@ -497,7 +497,7 @@ gem 'flipper', '~> 0.21.0'
gem 'flipper-active_record', '~> 0.21.0'
gem 'flipper-active_support_cache_store', '~> 0.21.0'
gem 'unleash', '~> 3.2.2'
gem 'gitlab-experiment', '~> 0.7.0'
gem 'gitlab-experiment', '~> 0.7.1'
# Structured logging
gem 'lograge', '~> 0.5'
......
......@@ -467,7 +467,7 @@ GEM
danger (>= 8.4.5)
danger-gitlab (>= 8.0.0)
rake
gitlab-experiment (0.7.0)
gitlab-experiment (0.7.1)
activesupport (>= 3.0)
request_store (>= 1.0)
gitlab-fog-azure-rm (1.2.0)
......@@ -1496,7 +1496,7 @@ DEPENDENCIES
github-markup (~> 1.7.0)
gitlab-chronic (~> 0.10.5)
gitlab-dangerfiles (~> 3.0)
gitlab-experiment (~> 0.7.0)
gitlab-experiment (~> 0.7.1)
gitlab-fog-azure-rm (~> 1.2.0)
gitlab-labkit (~> 0.22.0)
gitlab-license (~> 2.1.0)
......
......@@ -13,7 +13,7 @@ Gitlab::Experiment.configure do |config|
# Customize the logic of our default rollout, which shouldn't include
# assigning the control yet -- we specifically set it to false for now.
#
config.default_rollout = Gitlab::Experiment::Rollout::Feature.new
config.default_rollout = Gitlab::Experiment::Rollout.resolve(:feature)
# Mount the engine and middleware at a gitlab friendly style path.
#
......
......@@ -28,13 +28,10 @@ module Gitlab
# If the `Feature.enabled?` check is false, we return nil implicitly,
# which will assign the control. Otherwise we call super, which will
# assign a variant evenly, or based on our provided distribution rules.
def execute_assigment
def execute_assignment
super if ::Feature.enabled?(feature_flag_name, self, type: :experiment, default_enabled: :yaml)
end
# NOTE: There's a typo in the name of this method that we'll fix up.
alias_method :execute_assignment, :execute_assigment
# This is what's provided to the `Feature.enabled?` call that will be
# used to determine experiment inclusion. An experiment may provide an
# override for this method to make the experiment work on user, group,
......
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