Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
917b9fb3
Commit
917b9fb3
authored
Oct 02, 2020
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add feature categories to controllers beginning with S
parent
c649c784
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
21 additions
and
0 deletions
+21
-0
app/controllers/search_controller.rb
app/controllers/search_controller.rb
+2
-0
app/controllers/sent_notifications_controller.rb
app/controllers/sent_notifications_controller.rb
+2
-0
app/controllers/sessions_controller.rb
app/controllers/sessions_controller.rb
+2
-0
app/controllers/snippets/application_controller.rb
app/controllers/snippets/application_controller.rb
+2
-0
app/controllers/snippets/notes_controller.rb
app/controllers/snippets/notes_controller.rb
+2
-0
ee/app/controllers/security/application_controller.rb
ee/app/controllers/security/application_controller.rb
+2
-0
ee/app/controllers/smartcard_controller.rb
ee/app/controllers/smartcard_controller.rb
+2
-0
ee/app/controllers/subscriptions/groups_controller.rb
ee/app/controllers/subscriptions/groups_controller.rb
+2
-0
ee/app/controllers/subscriptions_controller.rb
ee/app/controllers/subscriptions_controller.rb
+2
-0
ee/app/controllers/survey_responses_controller.rb
ee/app/controllers/survey_responses_controller.rb
+2
-0
spec/controllers/every_controller_spec.rb
spec/controllers/every_controller_spec.rb
+1
-0
No files found.
app/controllers/search_controller.rb
View file @
917b9fb3
...
...
@@ -25,6 +25,8 @@ class SearchController < ApplicationController
layout
'search'
feature_category
:global_search
def
show
@project
=
search_service
.
project
@group
=
search_service
.
group
...
...
app/controllers/sent_notifications_controller.rb
View file @
917b9fb3
...
...
@@ -3,6 +3,8 @@
class
SentNotificationsController
<
ApplicationController
skip_before_action
:authenticate_user!
feature_category
:users
def
unsubscribe
@sent_notification
=
SentNotification
.
for
(
params
[
:id
])
...
...
app/controllers/sessions_controller.rb
View file @
917b9fb3
...
...
@@ -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
...
...
app/controllers/snippets/application_controller.rb
View file @
917b9fb3
...
...
@@ -4,6 +4,8 @@ class Snippets::ApplicationController < ApplicationController
include
FindSnippet
include
SnippetAuthorizations
feature_category
:snippets
private
def
authorize_read_snippet!
...
...
app/controllers/snippets/notes_controller.rb
View file @
917b9fb3
...
...
@@ -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
...
...
ee/app/controllers/security/application_controller.rb
View file @
917b9fb3
...
...
@@ -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!
...
...
ee/app/controllers/smartcard_controller.rb
View file @
917b9fb3
...
...
@@ -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
...
...
ee/app/controllers/subscriptions/groups_controller.rb
View file @
917b9fb3
...
...
@@ -8,6 +8,8 @@ module Subscriptions
before_action
:find_group
feature_category
:purchase
def
edit
end
...
...
ee/app/controllers/subscriptions_controller.rb
View file @
917b9fb3
...
...
@@ -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?
...
...
ee/app/controllers/survey_responses_controller.rb
View file @
917b9fb3
...
...
@@ -7,6 +7,8 @@ class SurveyResponsesController < ApplicationController
skip_before_action
:authenticate_user!
feature_category
:collection
def
index
track_response
if
Gitlab
.
com?
...
...
spec/controllers/every_controller_spec.rb
View file @
917b9fb3
...
...
@@ -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
}
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment