diff options
Diffstat (limited to 'app/controllers/invites_controller.rb')
-rw-r--r-- | app/controllers/invites_controller.rb | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/app/controllers/invites_controller.rb b/app/controllers/invites_controller.rb index c7b8486d1c9..26fc1c11f6d 100644 --- a/app/controllers/invites_controller.rb +++ b/app/controllers/invites_controller.rb @@ -15,13 +15,11 @@ class InvitesController < ApplicationController feature_category :authentication_and_authorization def show - track_new_user_invite_experiment('opened') accept if skip_invitation_prompt? end def accept if member.accept_invite!(current_user) - track_new_user_invite_experiment('accepted') track_invitation_reminders_experiment('accepted') redirect_to invite_details[:path], notice: _("You have been granted %{member_human_access} access to %{title} %{name}.") % { member_human_access: member.human_access, title: invite_details[:title], name: invite_details[:name] } @@ -110,25 +108,13 @@ class InvitesController < ApplicationController end end - def track_new_user_invite_experiment(action) - return unless params[:new_user_invite] - - property = params[:new_user_invite] == 'experiment' ? 'experiment_group' : 'control_group' - - track_experiment(:invite_email, action, property) - end - def track_invitation_reminders_experiment(action) return unless Gitlab::Experimentation.enabled?(:invitation_reminders) property = Gitlab::Experimentation.enabled_for_attribute?(:invitation_reminders, member.invite_email) ? 'experimental_group' : 'control_group' - track_experiment(:invitation_reminders, action, property) - end - - def track_experiment(experiment_key, action, property) Gitlab::Tracking.event( - Gitlab::Experimentation.experiment(experiment_key).tracking_category, + Gitlab::Experimentation.experiment(:invitation_reminders).tracking_category, action, property: property, label: Digest::MD5.hexdigest(member.to_global_id.to_s) |