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
c649c784
Commit
c649c784
authored
Oct 02, 2020
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add feature categories to controllers beginning with R
parent
7d7cd4ea
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
1 deletion
+13
-1
app/controllers/registrations/experience_levels_controller.rb
...controllers/registrations/experience_levels_controller.rb
+2
-0
app/controllers/registrations_controller.rb
app/controllers/registrations_controller.rb
+2
-0
app/controllers/repositories/git_http_client_controller.rb
app/controllers/repositories/git_http_client_controller.rb
+2
-0
app/controllers/runner_setup_controller.rb
app/controllers/runner_setup_controller.rb
+2
-0
ee/app/controllers/registrations/groups_controller.rb
ee/app/controllers/registrations/groups_controller.rb
+2
-0
ee/app/controllers/registrations/projects_controller.rb
ee/app/controllers/registrations/projects_controller.rb
+2
-0
spec/controllers/every_controller_spec.rb
spec/controllers/every_controller_spec.rb
+1
-1
No files found.
app/controllers/registrations/experience_levels_controller.rb
View file @
c649c784
...
@@ -7,6 +7,8 @@ module Registrations
...
@@ -7,6 +7,8 @@ module Registrations
before_action
:check_experiment_enabled
before_action
:check_experiment_enabled
before_action
:ensure_namespace_path_param
before_action
:ensure_namespace_path_param
feature_category
:navigation
def
update
def
update
current_user
.
experience_level
=
params
[
:experience_level
]
current_user
.
experience_level
=
params
[
:experience_level
]
...
...
app/controllers/registrations_controller.rb
View file @
c649c784
...
@@ -15,6 +15,8 @@ class RegistrationsController < Devise::RegistrationsController
...
@@ -15,6 +15,8 @@ class RegistrationsController < Devise::RegistrationsController
if:
->
{
action_name
==
'create'
&&
Gitlab
::
CurrentSettings
.
current_application_settings
.
enforce_terms?
}
if:
->
{
action_name
==
'create'
&&
Gitlab
::
CurrentSettings
.
current_application_settings
.
enforce_terms?
}
before_action
:load_recaptcha
,
only: :new
before_action
:load_recaptcha
,
only: :new
feature_category
:authentication_and_authorization
def
new
def
new
if
experiment_enabled?
(
:signup_flow
)
if
experiment_enabled?
(
:signup_flow
)
track_experiment_event
(
:terms_opt_in
,
'start'
)
track_experiment_event
(
:terms_opt_in
,
'start'
)
...
...
app/controllers/repositories/git_http_client_controller.rb
View file @
c649c784
...
@@ -20,6 +20,8 @@ module Repositories
...
@@ -20,6 +20,8 @@ module Repositories
prepend_before_action
:authenticate_user
,
:parse_repo_path
prepend_before_action
:authenticate_user
,
:parse_repo_path
feature_category
:source_code_management
private
private
def
download_request?
def
download_request?
...
...
app/controllers/runner_setup_controller.rb
View file @
c649c784
# frozen_string_literal: true
# frozen_string_literal: true
class
RunnerSetupController
<
ApplicationController
class
RunnerSetupController
<
ApplicationController
feature_category
:continuous_integration
def
platforms
def
platforms
render
json:
Gitlab
::
Ci
::
RunnerInstructions
::
OS
.
merge
(
Gitlab
::
Ci
::
RunnerInstructions
::
OTHER_ENVIRONMENTS
)
render
json:
Gitlab
::
Ci
::
RunnerInstructions
::
OS
.
merge
(
Gitlab
::
Ci
::
RunnerInstructions
::
OTHER_ENVIRONMENTS
)
end
end
...
...
ee/app/controllers/registrations/groups_controller.rb
View file @
c649c784
...
@@ -7,6 +7,8 @@ module Registrations
...
@@ -7,6 +7,8 @@ module Registrations
before_action
:authorize_create_group!
,
only: :new
before_action
:authorize_create_group!
,
only: :new
before_action
:check_experiment_enabled
before_action
:check_experiment_enabled
feature_category
:navigation
def
new
def
new
@group
=
Group
.
new
(
visibility_level:
helpers
.
default_group_visibility
)
@group
=
Group
.
new
(
visibility_level:
helpers
.
default_group_visibility
)
end
end
...
...
ee/app/controllers/registrations/projects_controller.rb
View file @
c649c784
...
@@ -7,6 +7,8 @@ module Registrations
...
@@ -7,6 +7,8 @@ module Registrations
before_action
:check_experiment_enabled
before_action
:check_experiment_enabled
before_action
:find_namespace
,
only: :new
before_action
:find_namespace
,
only: :new
feature_category
:navigation
def
new
def
new
@project
=
Project
.
new
(
namespace:
@namespace
)
@project
=
Project
.
new
(
namespace:
@namespace
)
end
end
...
...
spec/controllers/every_controller_spec.rb
View file @
c649c784
...
@@ -27,7 +27,7 @@ RSpec.describe "Every controller" do
...
@@ -27,7 +27,7 @@ RSpec.describe "Every controller" do
next
unless
controller
.
to_s
.
start_with?
(
'B'
,
'C'
,
'D'
,
'E'
,
'F'
,
next
unless
controller
.
to_s
.
start_with?
(
'B'
,
'C'
,
'D'
,
'E'
,
'F'
,
'H'
,
'I'
,
'J'
,
'K'
,
'L'
,
'H'
,
'I'
,
'J'
,
'K'
,
'L'
,
'M'
,
'N'
,
'O'
,
'M'
,
'N'
,
'O'
,
'Q'
,
'R'
,
'Projects::MergeRequestsController'
)
'Projects::MergeRequestsController'
)
"
#{
controller
}
#
#{
action
}
"
"
#{
controller
}
#
#{
action
}
"
...
...
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