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