Commit 0b0be3c4 authored by Etienne Baqué's avatar Etienne Baqué

Merge branch '300824-experiment-cleanup-upgrade_link_in_user_menu_a' into 'master'

Convert upgrade link experiment to feature flag [RUN ALL RSPEC] [RUN AS-IF-FOSS]

See merge request gitlab-org/gitlab!56591
parents 2d19c7b9 91f7e4d4
--- ---
name: upgrade_link_in_user_menu_a_experiment_percentage name: upgrade_link_in_user_menu_a
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/29428 introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56591
rollout_issue_url: https://gitlab.com/gitlab-org/growth/team-tasks/-/issues/126 rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/300824
milestone: '13.0' milestone: '13.11'
type: experiment type: development
group: group::expansion group: group::expansion
default_enabled: false default_enabled: true
...@@ -23,7 +23,7 @@ module EE ...@@ -23,7 +23,7 @@ module EE
def show_upgrade_link?(user) def show_upgrade_link?(user)
return unless user return unless user
return unless ::Gitlab.com? return unless ::Gitlab.com?
return unless experiment_enabled?(:upgrade_link_in_user_menu_a) return unless ::Feature.enabled?(:upgrade_link_in_user_menu_a, default_enabled: :yaml)
Rails.cache.fetch(['users', user.id, 'show_upgrade_link?'], expires_in: 10.minutes) do Rails.cache.fetch(['users', user.id, 'show_upgrade_link?'], expires_in: 10.minutes) do
user.owns_upgradeable_namespace? user.owns_upgradeable_namespace?
......
---
title: Add upgrade link in user menu
merge_request: 56591
author:
type: added
...@@ -34,10 +34,6 @@ ...@@ -34,10 +34,6 @@
module Gitlab module Gitlab
module Experimentation module Experimentation
EXPERIMENTS = { EXPERIMENTS = {
upgrade_link_in_user_menu_a: {
tracking_category: 'Growth::Expansion::Experiment::UpgradeLinkInUserMenuA',
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
......
...@@ -7,7 +7,6 @@ require 'spec_helper' ...@@ -7,7 +7,6 @@ require 'spec_helper'
RSpec.describe Gitlab::Experimentation::EXPERIMENTS do 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,
: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
......
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