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
97c97d9d
Commit
97c97d9d
authored
Oct 29, 2020
by
Dallas Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename Shared to GroupTypes
parent
0afeaa68
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
app/models/experiment.rb
app/models/experiment.rb
+1
-1
app/models/experiment_user.rb
app/models/experiment_user.rb
+1
-1
lib/gitlab/experimentation.rb
lib/gitlab/experimentation.rb
+1
-1
lib/gitlab/experimentation/group_types.rb
lib/gitlab/experimentation/group_types.rb
+1
-1
spec/lib/gitlab/experimentation/group_types_spec.rb
spec/lib/gitlab/experimentation/group_types_spec.rb
+1
-1
No files found.
app/models/experiment.rb
View file @
97c97d9d
# frozen_string_literal: true
class
Experiment
<
ApplicationRecord
include
::
Gitlab
::
Experimentation
::
Shared
include
::
Gitlab
::
Experimentation
::
GroupTypes
has_many
:experiment_users
has_many
:users
,
through: :experiment_users
...
...
app/models/experiment_user.rb
View file @
97c97d9d
# frozen_string_literal: true
class
ExperimentUser
<
ApplicationRecord
include
::
Gitlab
::
Experimentation
::
Shared
include
::
Gitlab
::
Experimentation
::
GroupTypes
belongs_to
:experiment
belongs_to
:user
...
...
lib/gitlab/experimentation.rb
View file @
97c97d9d
...
...
@@ -97,7 +97,7 @@ module Gitlab
# of the experimental group.
#
module
ControllerConcern
include
::
Gitlab
::
Experimentation
::
Shared
include
::
Gitlab
::
Experimentation
::
GroupTypes
extend
ActiveSupport
::
Concern
included
do
...
...
lib/gitlab/experimentation/
shared
.rb
→
lib/gitlab/experimentation/
group_types
.rb
View file @
97c97d9d
...
...
@@ -2,7 +2,7 @@
module
Gitlab
module
Experimentation
module
Shared
module
GroupTypes
GROUP_CONTROL
=
:control
GROUP_EXPERIMENTAL
=
:experimental
end
...
...
spec/lib/gitlab/experimentation/
shared
_spec.rb
→
spec/lib/gitlab/experimentation/
group_types
_spec.rb
View file @
97c97d9d
...
...
@@ -2,7 +2,7 @@
require
'spec_helper'
RSpec
.
describe
Gitlab
::
Experimentation
::
Shared
do
RSpec
.
describe
Gitlab
::
Experimentation
::
GroupTypes
do
it
'defines a GROUP_CONTROL constant'
do
expect
(
described_class
.
const_defined?
(
:GROUP_CONTROL
)).
to
be_truthy
end
...
...
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