diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-01 09:07:32 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-01 09:07:32 +0300 |
commit | 916bb1bb577b64ec769b4c081c4f861a2f47322f (patch) | |
tree | 5184da3dd62647179130811c75de9631c925300d /app/experiments/application_experiment.rb | |
parent | a3e0d4c59ff43ee406d2fee12a29339b95a0787d (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/experiments/application_experiment.rb')
-rw-r--r-- | app/experiments/application_experiment.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/experiments/application_experiment.rb b/app/experiments/application_experiment.rb index 60bf47c2f12..cfbd4eb6b75 100644 --- a/app/experiments/application_experiment.rb +++ b/app/experiments/application_experiment.rb @@ -3,6 +3,18 @@ class ApplicationExperiment < Gitlab::Experiment control { nil } # provide a default control for anonymous experiments + # We have experiments in ce/foss code even though they will never be available + # for ce/foss instances. + # We do that since we currently only experiment on the ee with SaaS instance. + # However, if the experiment is successful, we may commit the final code to ce/foss + # if the feature we are experimenting on is not a licensed or SaaS feature. + # + # This follows the https://docs.gitlab.com/ee/development/ee_features.html + # guidelines and therefore we have hardcoded `false` here. + def self.available? + false + end + def control_behavior # define a default nil control behavior so we can omit it when not needed end @@ -44,3 +56,5 @@ class ApplicationExperiment < Gitlab::Experiment actor.respond_to?(:id) ? actor : context.try(:user) end end + +ApplicationExperiment.prepend_mod |