diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-03 09:10:07 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-03 09:10:07 +0300 |
commit | 685084aaf40a35358bd7c5135b08dc7e0d3439a7 (patch) | |
tree | 9096fa784bc9cb952bb4dea2dcc8ac5195de505e /app/experiments | |
parent | 9d5573c70ae3ef3f550bb06b62cc640165683a94 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/experiments')
-rw-r--r-- | app/experiments/application_experiment.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/experiments/application_experiment.rb b/app/experiments/application_experiment.rb index a0e9ce07b92..93c94b0c16e 100644 --- a/app/experiments/application_experiment.rb +++ b/app/experiments/application_experiment.rb @@ -58,7 +58,7 @@ class ApplicationExperiment < Gitlab::Experiment # rubocop:disable Gitlab/Namesp def record_experiment subject = context.value[:namespace] || context.value[:group] || context.value[:project] || context.value[:user] || context.value[:actor] - return unless subject.is_a?(Group) || subject.is_a?(User) || subject.is_a?(Project) + return unless ExperimentSubject.valid_subject?(subject) variant = :experimental if @variant_name != :control |