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
581232d2
Commit
581232d2
authored
Sep 30, 2020
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add feature categories to controllers beginning with E
parent
595a379e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
1 deletion
+7
-1
app/controllers/explore/groups_controller.rb
app/controllers/explore/groups_controller.rb
+2
-0
app/controllers/explore/projects_controller.rb
app/controllers/explore/projects_controller.rb
+2
-0
app/controllers/explore/snippets_controller.rb
app/controllers/explore/snippets_controller.rb
+2
-0
spec/controllers/every_controller_spec.rb
spec/controllers/every_controller_spec.rb
+1
-1
No files found.
app/controllers/explore/groups_controller.rb
View file @
581232d2
...
...
@@ -3,6 +3,8 @@
class
Explore::GroupsController
<
Explore
::
ApplicationController
include
GroupTree
feature_category
:subgroups
,
only:
[
:index
]
def
index
render_group_tree
GroupsFinder
.
new
(
current_user
).
execute
end
...
...
app/controllers/explore/projects_controller.rb
View file @
581232d2
...
...
@@ -18,6 +18,8 @@ class Explore::ProjectsController < Explore::ApplicationController
rescue_from
PageOutOfBoundsError
,
with: :page_out_of_bounds
feature_category
:projects
,
only:
[
:index
,
:trending
,
:starred
]
def
index
@projects
=
load_projects
...
...
app/controllers/explore/snippets_controller.rb
View file @
581232d2
...
...
@@ -3,6 +3,8 @@
class
Explore::SnippetsController
<
Explore
::
ApplicationController
include
Gitlab
::
NoteableMetadata
feature_category
:snippets
,
only:
[
:index
]
def
index
@snippets
=
SnippetsFinder
.
new
(
current_user
,
explore:
true
)
.
execute
...
...
spec/controllers/every_controller_spec.rb
View file @
581232d2
...
...
@@ -24,7 +24,7 @@ RSpec.describe "Every controller" do
let_it_be
(
:routes_without_category
)
do
controller_actions
.
map
do
|
controller
,
action
|
next
if
controller
.
feature_category_for_action
(
action
)
next
unless
controller
.
to_s
.
start_with?
(
'B'
,
'C'
,
'D'
)
next
unless
controller
.
to_s
.
start_with?
(
'B'
,
'C'
,
'D'
,
'E'
)
"
#{
controller
}
#
#{
action
}
"
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