Commit dd98a637 authored by Doug Stull's avatar Doug Stull

Remove invite members version a experiment/ff

- declared success - so we will now show this on every
  priveledged user.
parent 3196d6cc
...@@ -53,7 +53,6 @@ class Projects::IssuesController < Projects::ApplicationController ...@@ -53,7 +53,6 @@ class Projects::IssuesController < Projects::ApplicationController
push_to_gon_attributes(:features, real_time_feature_flag, real_time_enabled) push_to_gon_attributes(:features, real_time_feature_flag, real_time_enabled)
push_frontend_feature_flag(:confidential_notes, @project, default_enabled: :yaml) push_frontend_feature_flag(:confidential_notes, @project, default_enabled: :yaml)
record_experiment_user(:invite_members_version_a)
record_experiment_user(:invite_members_version_b) record_experiment_user(:invite_members_version_b)
end end
......
...@@ -43,7 +43,6 @@ class Projects::MergeRequestsController < Projects::MergeRequests::ApplicationCo ...@@ -43,7 +43,6 @@ class Projects::MergeRequestsController < Projects::MergeRequests::ApplicationCo
push_frontend_feature_flag(:local_file_reviews, default_enabled: :yaml) push_frontend_feature_flag(:local_file_reviews, default_enabled: :yaml)
push_frontend_feature_flag(:paginated_notes, @project, default_enabled: :yaml) push_frontend_feature_flag(:paginated_notes, @project, default_enabled: :yaml)
record_experiment_user(:invite_members_version_a)
record_experiment_user(:invite_members_version_b) record_experiment_user(:invite_members_version_b)
end end
......
...@@ -13,7 +13,7 @@ module InviteMembersHelper ...@@ -13,7 +13,7 @@ module InviteMembersHelper
def directly_invite_members? def directly_invite_members?
strong_memoize(:directly_invite_members) do strong_memoize(:directly_invite_members) do
experiment_enabled?(:invite_members_version_a) && can_import_members? can_import_members?
end end
end end
......
...@@ -39,17 +39,4 @@ ...@@ -39,17 +39,4 @@
- data['max-select'] = dropdown_options[:data][:'max-select'] if dropdown_options[:data][:'max-select'] - data['max-select'] = dropdown_options[:data][:'max-select'] if dropdown_options[:data][:'max-select']
- options[:data].merge!(data) - options[:data].merge!(data)
- if experiment_enabled?(:invite_members_version_a) && can_import_members? = dropdown_tag(title, options: options)
- options[:dropdown_class] += ' dropdown-extended-height'
- options[:footer_content] = true
- options[:wrapper_class] = 'js-sidebar-reviewer-dropdown'
= dropdown_tag(title, options: options) do
%ul.dropdown-footer-list
%li
= link_to _('Invite Members'),
project_project_members_path(@project),
title: _('Invite Members'),
data: { 'is-link': true, 'track-event': 'click_invite_members', 'track-label': 'edit_reviewer' }
- else
= dropdown_tag(title, options: options)
---
title: Cleanup invite_members_version_a experiment
merge_request: 55178
author:
type: added
---
name: invite_members_version_a_experiment_percentage
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/33210
rollout_issue_url: https://gitlab.com/gitlab-org/growth/team-tasks/-/issues/299
milestone: '13.1'
type: experiment
group: group::expansion
default_enabled: false
...@@ -38,10 +38,6 @@ module Gitlab ...@@ -38,10 +38,6 @@ module Gitlab
tracking_category: 'Growth::Expansion::Experiment::UpgradeLinkInUserMenuA', tracking_category: 'Growth::Expansion::Experiment::UpgradeLinkInUserMenuA',
use_backwards_compatible_subject_index: true use_backwards_compatible_subject_index: true
}, },
invite_members_version_a: {
tracking_category: 'Growth::Expansion::Experiment::InviteMembersVersionA',
use_backwards_compatible_subject_index: true
},
invite_members_version_b: { invite_members_version_b: {
tracking_category: 'Growth::Expansion::Experiment::InviteMembersVersionB', tracking_category: 'Growth::Expansion::Experiment::InviteMembersVersionB',
use_backwards_compatible_subject_index: true use_backwards_compatible_subject_index: true
......
...@@ -71,15 +71,7 @@ RSpec.describe InviteMembersHelper do ...@@ -71,15 +71,7 @@ RSpec.describe InviteMembersHelper do
allow(helper).to receive(:current_user) { owner } allow(helper).to receive(:current_user) { owner }
end end
it 'returns false' do
allow(helper).to receive(:experiment_enabled?).with(:invite_members_version_a) { false }
expect(helper.directly_invite_members?).to eq false
end
it 'returns true' do it 'returns true' do
allow(helper).to receive(:experiment_enabled?).with(:invite_members_version_a) { true }
expect(helper.directly_invite_members?).to eq true expect(helper.directly_invite_members?).to eq true
end end
end end
...@@ -90,8 +82,6 @@ RSpec.describe InviteMembersHelper do ...@@ -90,8 +82,6 @@ RSpec.describe InviteMembersHelper do
end end
it 'returns false' do it 'returns false' do
allow(helper).to receive(:experiment_enabled?).with(:invite_members_version_a) { true }
expect(helper.directly_invite_members?).to eq false expect(helper.directly_invite_members?).to eq false
end end
end end
......
...@@ -8,7 +8,6 @@ RSpec.describe Gitlab::Experimentation::EXPERIMENTS do ...@@ -8,7 +8,6 @@ RSpec.describe Gitlab::Experimentation::EXPERIMENTS do
it 'temporarily ensures we know what experiments exist for backwards compatibility' do it 'temporarily ensures we know what experiments exist for backwards compatibility' do
expected_experiment_keys = [ expected_experiment_keys = [
:upgrade_link_in_user_menu_a, :upgrade_link_in_user_menu_a,
:invite_members_version_a,
:invite_members_version_b, :invite_members_version_b,
:invite_members_empty_group_version_a, :invite_members_empty_group_version_a,
:contact_sales_btn_in_app, :contact_sales_btn_in_app,
......
# frozen_string_literal: true # frozen_string_literal: true
RSpec.shared_examples 'issuable invite members experiments' do RSpec.shared_examples 'issuable invite members experiments' do
context 'when invite_members_version_a experiment is enabled' do context 'when a privileged user can invite' do
before do
stub_experiment_for_subject(invite_members_version_a: true)
end
it 'shows a link for inviting members and follows through to the members page' do it 'shows a link for inviting members and follows through to the members page' do
project.add_maintainer(user) project.add_maintainer(user)
visit issuable_path visit issuable_path
...@@ -51,9 +47,9 @@ RSpec.shared_examples 'issuable invite members experiments' do ...@@ -51,9 +47,9 @@ RSpec.shared_examples 'issuable invite members experiments' do
end end
end end
context 'when no invite members experiments are enabled' do context 'when invite_members_version_b experiment is disabled' do
it 'shows author in assignee dropdown and no invite link' do it 'shows author in assignee dropdown and no invite link' do
project.add_maintainer(user) project.add_developer(user)
visit issuable_path visit issuable_path
find('.block.assignee .edit-link').click find('.block.assignee .edit-link').click
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment