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
780f8065
Commit
780f8065
authored
Oct 02, 2020
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add feature categories to controllers beginning with H
parent
6a4b948b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
app/controllers/help_controller.rb
app/controllers/help_controller.rb
+1
-0
spec/controllers/every_controller_spec.rb
spec/controllers/every_controller_spec.rb
+4
-1
No files found.
app/controllers/help_controller.rb
View file @
780f8065
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
class
HelpController
<
ApplicationController
class
HelpController
<
ApplicationController
skip_before_action
:authenticate_user!
,
unless: :public_visibility_restricted?
skip_before_action
:authenticate_user!
,
unless: :public_visibility_restricted?
feature_category
:not_owned
layout
'help'
layout
'help'
...
...
spec/controllers/every_controller_spec.rb
View file @
780f8065
...
@@ -24,7 +24,10 @@ RSpec.describe "Every controller" do
...
@@ -24,7 +24,10 @@ RSpec.describe "Every controller" do
let_it_be
(
:routes_without_category
)
do
let_it_be
(
:routes_without_category
)
do
controller_actions
.
map
do
|
controller
,
action
|
controller_actions
.
map
do
|
controller
,
action
|
next
if
controller
.
feature_category_for_action
(
action
)
next
if
controller
.
feature_category_for_action
(
action
)
next
unless
controller
.
to_s
.
start_with?
(
'B'
,
'C'
,
'D'
,
'E'
,
'F'
,
'Projects::MergeRequestsController'
)
next
unless
controller
.
to_s
.
start_with?
(
'B'
,
'C'
,
'D'
,
'E'
,
'F'
,
'H'
,
'Projects::MergeRequestsController'
)
"
#{
controller
}
#
#{
action
}
"
"
#{
controller
}
#
#{
action
}
"
end
.
compact
end
.
compact
...
...
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