Commit 581232d2 authored by Sean McGivern's avatar Sean McGivern

Add feature categories to controllers beginning with E

parent 595a379e
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class Explore::GroupsController < Explore::ApplicationController class Explore::GroupsController < Explore::ApplicationController
include GroupTree include GroupTree
feature_category :subgroups, only: [:index]
def index def index
render_group_tree GroupsFinder.new(current_user).execute render_group_tree GroupsFinder.new(current_user).execute
end end
......
...@@ -18,6 +18,8 @@ class Explore::ProjectsController < Explore::ApplicationController ...@@ -18,6 +18,8 @@ class Explore::ProjectsController < Explore::ApplicationController
rescue_from PageOutOfBoundsError, with: :page_out_of_bounds rescue_from PageOutOfBoundsError, with: :page_out_of_bounds
feature_category :projects, only: [:index, :trending, :starred]
def index def index
@projects = load_projects @projects = load_projects
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class Explore::SnippetsController < Explore::ApplicationController class Explore::SnippetsController < Explore::ApplicationController
include Gitlab::NoteableMetadata include Gitlab::NoteableMetadata
feature_category :snippets, only: [:index]
def index def index
@snippets = SnippetsFinder.new(current_user, explore: true) @snippets = SnippetsFinder.new(current_user, explore: true)
.execute .execute
......
...@@ -24,7 +24,7 @@ RSpec.describe "Every controller" do ...@@ -24,7 +24,7 @@ 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') next unless controller.to_s.start_with?('B', 'C', 'D', 'E')
"#{controller}##{action}" "#{controller}##{action}"
end.compact end.compact
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment