diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 09:55:51 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 09:55:51 +0000 |
commit | e8d2c2579383897a1dd7f9debd359abe8ae8373d (patch) | |
tree | c42be41678c2586d49a75cabce89322082698334 /app/services/namespaces | |
parent | fc845b37ec3a90aaa719975f607740c22ba6a113 (diff) | |
download | gitlab-ce-e8d2c2579383897a1dd7f9debd359abe8ae8373d.tar.gz |
Add latest changes from gitlab-org/gitlab@14-1-stable-eev14.1.0-rc42
Diffstat (limited to 'app/services/namespaces')
-rw-r--r-- | app/services/namespaces/in_product_marketing_emails_service.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/app/services/namespaces/in_product_marketing_emails_service.rb b/app/services/namespaces/in_product_marketing_emails_service.rb index 3461362b48c..f7f0cf9abe8 100644 --- a/app/services/namespaces/in_product_marketing_emails_service.rb +++ b/app/services/namespaces/in_product_marketing_emails_service.rb @@ -2,8 +2,6 @@ module Namespaces class InProductMarketingEmailsService - include Gitlab::Experimentation::GroupTypes - TRACKS = { create: { interval_days: [1, 5, 10], @@ -61,12 +59,6 @@ module Namespaces attr_reader :track, :interval, :in_product_marketing_email_records def send_email_for_group(group) - if Gitlab.com? - experiment_enabled_for_group = experiment_enabled_for_group?(group) - experiment_add_group(group, experiment_enabled_for_group) - return unless experiment_enabled_for_group - end - users_for_group(group).each do |user| if can_perform_action?(user, group) send_email(user, group) @@ -77,15 +69,6 @@ module Namespaces save_tracked_emails! end - def experiment_enabled_for_group?(group) - Gitlab::Experimentation.in_experiment_group?(:in_product_marketing_emails, subject: group) - end - - def experiment_add_group(group, experiment_enabled_for_group) - variant = experiment_enabled_for_group ? GROUP_EXPERIMENTAL : GROUP_CONTROL - Experiment.add_group(:in_product_marketing_emails, variant: variant, group: group) - end - def groups_for_track onboarding_progress_scope = OnboardingProgress .completed_actions_with_latest_in_range(completed_actions, range) |