Commit 917b9fb3 authored by Sean McGivern's avatar Sean McGivern

Add feature categories to controllers beginning with S

parent c649c784
......@@ -25,6 +25,8 @@ class SearchController < ApplicationController
layout 'search'
feature_category :global_search
def show
@project = search_service.project
@group = search_service.group
......
......@@ -3,6 +3,8 @@
class SentNotificationsController < ApplicationController
skip_before_action :authenticate_user!
feature_category :users
def unsubscribe
@sent_notification = SentNotification.for(params[:id])
......
......@@ -49,6 +49,8 @@ class SessionsController < Devise::SessionsController
# token mismatch.
protect_from_forgery with: :exception, prepend: true, except: :destroy
feature_category :authentication_and_authorization
CAPTCHA_HEADER = 'X-GitLab-Show-Login-Captcha'
MAX_FAILED_LOGIN_ATTEMPTS = 5
......
......@@ -4,6 +4,8 @@ class Snippets::ApplicationController < ApplicationController
include FindSnippet
include SnippetAuthorizations
feature_category :snippets
private
def authorize_read_snippet!
......
......@@ -8,6 +8,8 @@ class Snippets::NotesController < ApplicationController
before_action :authorize_read_snippet!, only: [:show, :index]
before_action :authorize_create_note!, only: [:create]
feature_category :snippets
private
def note
......
......@@ -9,6 +9,8 @@ module Security
push_frontend_feature_flag(:instance_security_dashboard, default_enabled: true)
end
feature_category :vulnerability_management
protected
def check_feature_enabled!
......
......@@ -9,6 +9,8 @@ class SmartcardController < ApplicationController
before_action :check_ngingx_certificate_header, only: :extract_certificate
before_action :check_certificate_param, only: :verify_certificate
feature_category :authentication_and_authorization
def auth
redirect_to extract_certificate_smartcard_url(extract_certificate_url_options)
end
......
......@@ -8,6 +8,8 @@ module Subscriptions
before_action :find_group
feature_category :purchase
def edit
end
......
......@@ -4,6 +4,8 @@ class SubscriptionsController < ApplicationController
layout 'checkout'
skip_before_action :authenticate_user!, only: :new
feature_category :purchase
content_security_policy do |p|
next if p.directives.blank?
......
......@@ -7,6 +7,8 @@ class SurveyResponsesController < ApplicationController
skip_before_action :authenticate_user!
feature_category :collection
def index
track_response if Gitlab.com?
......
......@@ -28,6 +28,7 @@ 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',
'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