Commit 39a525a2 authored by Jeremy Jackson's avatar Jeremy Jackson Committed by jejacks0n

Update gitlab-experiment to version 0.7.1

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