diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 11:27:35 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 11:27:35 +0300 |
commit | 7e9c479f7de77702622631cff2628a9c8dcbc627 (patch) | |
tree | c8f718a08e110ad7e1894510980d2155a6549197 /app/controllers/invites_controller.rb | |
parent | e852b0ae16db4052c1c567d9efa4facc81146e88 (diff) |
Add latest changes from gitlab-org/gitlab@13-6-stable-eev13.6.0-rc42
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) |