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: a0f4dee28661a29096bda3edb748740a1497d4a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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 resolve_variant_name
      Strategy::RoundRobin.new(feature_flag_name, %i[avatar permission_info control]).execute
    end
  end
end