Commit 70b361a5 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Merge branch '337965-remove-unused-learn-gitlab-code' into 'master'

Remove unused continuous onboarding code

See merge request gitlab-org/gitlab!69986
parents 6a63d330 ef78925b
......@@ -22,14 +22,5 @@ module Registrations::CreateGroup
def group_params
params.require(:group).permit(:name, :path, :visibility_level)
end
def learn_gitlab_context
strong_memoize(:learn_gitlab_context) do
in_experiment_group_a = Gitlab::Experimentation.in_experiment_group?(:learn_gitlab_a, subject: current_user)
in_experiment_group_b = !in_experiment_group_a && Gitlab::Experimentation.in_experiment_group?(:learn_gitlab_b, subject: current_user)
{ in_experiment_group_a: in_experiment_group_a, in_experiment_group_b: in_experiment_group_b }
end
end
end
end
......@@ -10,11 +10,6 @@ module Registrations::CreateProject
included do
private
def learn_gitlab_experiment_enabled?
Gitlab::Experimentation.in_experiment_group?(:learn_gitlab_a, subject: current_user) ||
Gitlab::Experimentation.in_experiment_group?(:learn_gitlab_b, subject: current_user)
end
def learn_gitlab_template_path
file = if helpers.in_trial_onboarding_flow?
LEARN_GITLAB_ULTIMATE_TEMPLATE
......
......@@ -25,12 +25,6 @@ RSpec.shared_examples "Registrations::GroupsController GET #new" do
let_it_be(:user) { create(:user) }
let(:dev_env_or_com) { true }
let(:learn_gitlab_context) do
{
in_experiment_group_a: false,
in_experiment_group_b: false
}
end
subject { get :new }
......
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