Welcome to mirror list, hosted at ThFree Co, Russian Federation.

invite_email_experiment.rb « members « experiments « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4a03ebb772695943c473e77af76028f6496dced7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

module Members
  class InviteEmailExperiment < ApplicationExperiment
    exclude { context.actor.created_by.blank? }
    exclude { context.actor.created_by.avatar_url.nil? }

    INVITE_TYPE = 'initial_email'

    def rollout_strategy
      :round_robin
    end

    def variants
      %i[avatar permission_info control]
    end
  end
end