summaryrefslogtreecommitdiff
path: root/app/helpers/learn_gitlab_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/learn_gitlab_helper.rb')
-rw-r--r--app/helpers/learn_gitlab_helper.rb18
1 files changed, 1 insertions, 17 deletions
diff --git a/app/helpers/learn_gitlab_helper.rb b/app/helpers/learn_gitlab_helper.rb
index a3a8a275f67..4fb7a05a0e9 100644
--- a/app/helpers/learn_gitlab_helper.rb
+++ b/app/helpers/learn_gitlab_helper.rb
@@ -1,23 +1,12 @@
# frozen_string_literal: true
module LearnGitlabHelper
- def learn_gitlab_experiment_enabled?(project)
+ def learn_gitlab_enabled?(project)
return false unless current_user
- return false unless continous_onboarding_experiment_enabled_for_user?
learn_gitlab_onboarding_available?(project)
end
- def learn_gitlab_experiment_tracking_category
- return unless current_user
-
- if Gitlab::Experimentation.in_experiment_group?(:learn_gitlab_a, subject: current_user)
- Gitlab::Experimentation.get_experiment(:learn_gitlab_a).tracking_category
- elsif Gitlab::Experimentation.in_experiment_group?(:learn_gitlab_b, subject: current_user)
- Gitlab::Experimentation.get_experiment(:learn_gitlab_b).tracking_category
- end
- end
-
def onboarding_actions_data(project)
attributes = onboarding_progress(project).attributes.symbolize_keys
@@ -31,11 +20,6 @@ module LearnGitlabHelper
end
end
- def continous_onboarding_experiment_enabled_for_user?
- Gitlab::Experimentation.in_experiment_group?(:learn_gitlab_a, subject: current_user) ||
- Gitlab::Experimentation.in_experiment_group?(:learn_gitlab_b, subject: current_user)
- end
-
def onboarding_sections_data
{
workspace: {