Commit 015f424c authored by Sean McGivern's avatar Sean McGivern

Add feature categories to controllers beginning with U

parent ae916476
......@@ -25,6 +25,8 @@ class UploadsController < ApplicationController
before_action :authorize_create_access!, only: [:create, :authorize]
before_action :verify_workhorse_api!, only: [:authorize]
feature_category :not_owned
def uploader_class
PersonalFileUploader
end
......
# frozen_string_literal: true
class UserCalloutsController < ApplicationController
feature_category :navigation
def create
callout = ensure_callout
......
......@@ -14,6 +14,8 @@ module Users
layout 'terms'
feature_category :users
def index
@redirect = redirect_path
......
......@@ -21,6 +21,8 @@ class UsersController < ApplicationController
before_action :authorize_read_user_profile!,
only: [:calendar, :calendar_activities, :groups, :projects, :contributed_projects, :starred_projects, :snippets]
feature_category :users
def show
respond_to do |format|
format.html
......
......@@ -3,6 +3,8 @@
class UnsubscribesController < ApplicationController
skip_before_action :authenticate_user!
feature_category :users
def show
@user = get_user
end
......
......@@ -3,6 +3,8 @@
class UsernamesController < ApplicationController
skip_before_action :authenticate_user!, only: [:suggest]
feature_category :users
def suggest
if validate_params
username = ::User.username_suggestion(params[:name])
......
......@@ -28,7 +28,8 @@ RSpec.describe "Every controller" do
next unless controller.to_s.start_with?('B', 'C', 'D', 'E', 'F',
'H', 'I', 'J', 'K', 'L',
'M', 'N', 'O', 'Q', 'R',
'S', 'T',
'S', 'T', 'U', 'W', 'X',
'Y', 'Z',
'Projects::MergeRequestsController')
"#{controller}##{action}"
......
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