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

Add feature categories to controllers beginning with E

parent 595a379e
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
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