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
ef78925b
Commit
ef78925b
authored
Sep 09, 2021
by
Alper Akgun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused learn gitlab code
parent
5d90d345
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
20 deletions
+0
-20
ee/app/controllers/concerns/registrations/create_group.rb
ee/app/controllers/concerns/registrations/create_group.rb
+0
-9
ee/app/controllers/concerns/registrations/create_project.rb
ee/app/controllers/concerns/registrations/create_project.rb
+0
-5
ee/spec/support/shared_examples/controllers/registrations/groups_controller_shared_examples.rb
...ollers/registrations/groups_controller_shared_examples.rb
+0
-6
No files found.
ee/app/controllers/concerns/registrations/create_group.rb
View file @
ef78925b
...
...
@@ -22,14 +22,5 @@ module Registrations::CreateGroup
def
group_params
params
.
require
(
:group
).
permit
(
:name
,
:path
,
:visibility_level
)
end
def
learn_gitlab_context
strong_memoize
(
:learn_gitlab_context
)
do
in_experiment_group_a
=
Gitlab
::
Experimentation
.
in_experiment_group?
(
:learn_gitlab_a
,
subject:
current_user
)
in_experiment_group_b
=
!
in_experiment_group_a
&&
Gitlab
::
Experimentation
.
in_experiment_group?
(
:learn_gitlab_b
,
subject:
current_user
)
{
in_experiment_group_a:
in_experiment_group_a
,
in_experiment_group_b:
in_experiment_group_b
}
end
end
end
end
ee/app/controllers/concerns/registrations/create_project.rb
View file @
ef78925b
...
...
@@ -10,11 +10,6 @@ module Registrations::CreateProject
included
do
private
def
learn_gitlab_experiment_enabled?
Gitlab
::
Experimentation
.
in_experiment_group?
(
:learn_gitlab_a
,
subject:
current_user
)
||
Gitlab
::
Experimentation
.
in_experiment_group?
(
:learn_gitlab_b
,
subject:
current_user
)
end
def
learn_gitlab_template_path
file
=
if
helpers
.
in_trial_onboarding_flow?
LEARN_GITLAB_ULTIMATE_TEMPLATE
...
...
ee/spec/support/shared_examples/controllers/registrations/groups_controller_shared_examples.rb
View file @
ef78925b
...
...
@@ -25,12 +25,6 @@ RSpec.shared_examples "Registrations::GroupsController GET #new" do
let_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:dev_env_or_com
)
{
true
}
let
(
:learn_gitlab_context
)
do
{
in_experiment_group_a:
false
,
in_experiment_group_b:
false
}
end
subject
{
get
:new
}
...
...
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