Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9e45e1f5
Commit
9e45e1f5
authored
Oct 22, 2020
by
Dallas Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Temporarily verify list of defined experiments
parent
c1e037c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
1 deletion
+27
-1
lib/gitlab/experimentation.rb
lib/gitlab/experimentation.rb
+2
-1
spec/lib/gitlab/experimentation_spec.rb
spec/lib/gitlab/experimentation_spec.rb
+25
-0
No files found.
lib/gitlab/experimentation.rb
View file @
9e45e1f5
...
...
@@ -58,7 +58,8 @@ module Gitlab
use_backwards_compatible_subject_index:
true
},
invite_members_empty_group_version_a:
{
tracking_category:
'Growth::Expansion::Experiment::InviteMembersEmptyGroupVersionA'
tracking_category:
'Growth::Expansion::Experiment::InviteMembersEmptyGroupVersionA'
,
use_backwards_compatible_subject_index:
true
},
new_create_project_ui:
{
tracking_category:
'Manage::Import::Experiment::NewCreateProjectUi'
,
...
...
spec/lib/gitlab/experimentation_spec.rb
View file @
9e45e1f5
...
...
@@ -2,6 +2,31 @@
require
'spec_helper'
# This is temporary while https://gitlab.com/gitlab-org/gitlab/-/merge_requests/45733 gets rolled out.
# TODO: clean this up once the MR has been merged.
RSpec
.
describe
Gitlab
::
Experimentation
::
EXPERIMENTS
do
it
'temporarily ensures we know what experiments exist for backwards compatibility'
do
known_experiments
=
[
:signup_flow
,
:onboarding_issues
,
:ci_notification_dot
,
:upgrade_link_in_user_menu_a
,
:invite_members_version_a
,
:invite_members_version_b
,
:invite_members_empty_group_version_a
,
:new_create_project_ui
,
:contact_sales_btn_in_app
,
:customize_homepage
,
:invite_email
,
:invitation_reminders
,
:group_only_trials
,
:default_to_issues_board
]
expect
(
described_class
.
keys
).
to
match
(
known_experiments
)
end
end
RSpec
.
describe
Gitlab
::
Experimentation
,
:snowplow
do
before
do
stub_const
(
'Gitlab::Experimentation::EXPERIMENTS'
,
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment