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
a3a6f8af
Commit
a3a6f8af
authored
Oct 07, 2020
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add feature categories to remaining projects controllers
parent
dc6113e6
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
14 additions
and
9 deletions
+14
-9
app/controllers/projects/uploads_controller.rb
app/controllers/projects/uploads_controller.rb
+2
-0
app/controllers/projects/usage_ping_controller.rb
app/controllers/projects/usage_ping_controller.rb
+2
-0
app/controllers/projects/variables_controller.rb
app/controllers/projects/variables_controller.rb
+2
-0
app/controllers/projects/web_ide_schemas_controller.rb
app/controllers/projects/web_ide_schemas_controller.rb
+2
-0
app/controllers/projects/web_ide_terminals_controller.rb
app/controllers/projects/web_ide_terminals_controller.rb
+2
-0
app/controllers/projects/wikis_controller.rb
app/controllers/projects/wikis_controller.rb
+2
-0
ee/app/controllers/projects/vulnerability_feedback_controller.rb
...controllers/projects/vulnerability_feedback_controller.rb
+2
-0
spec/controllers/every_controller_spec.rb
spec/controllers/every_controller_spec.rb
+0
-9
No files found.
app/controllers/projects/uploads_controller.rb
View file @
a3a6f8af
...
...
@@ -11,6 +11,8 @@ class Projects::UploadsController < Projects::ApplicationController
before_action
:authorize_upload_file!
,
only:
[
:create
,
:authorize
]
before_action
:verify_workhorse_api!
,
only:
[
:authorize
]
feature_category
:not_owned
private
def
upload_model_class
...
...
app/controllers/projects/usage_ping_controller.rb
View file @
a3a6f8af
...
...
@@ -3,6 +3,8 @@
class
Projects::UsagePingController
<
Projects
::
ApplicationController
before_action
:authenticate_user!
feature_category
:collection
def
web_ide_clientside_preview
return
render_404
unless
Gitlab
::
CurrentSettings
.
web_ide_clientside_preview_enabled?
...
...
app/controllers/projects/variables_controller.rb
View file @
a3a6f8af
...
...
@@ -3,6 +3,8 @@
class
Projects::VariablesController
<
Projects
::
ApplicationController
before_action
:authorize_admin_build!
feature_category
:continuous_integration
def
show
respond_to
do
|
format
|
format
.
json
do
...
...
app/controllers/projects/web_ide_schemas_controller.rb
View file @
a3a6f8af
...
...
@@ -3,6 +3,8 @@
class
Projects::WebIdeSchemasController
<
Projects
::
ApplicationController
before_action
:authenticate_user!
feature_category
:web_ide
def
show
return
respond_422
unless
branch_sha
...
...
app/controllers/projects/web_ide_terminals_controller.rb
View file @
a3a6f8af
...
...
@@ -8,6 +8,8 @@ class Projects::WebIdeTerminalsController < Projects::ApplicationController
before_action
:authorize_read_web_ide_terminal!
,
except:
[
:check_config
,
:create
]
before_action
:authorize_update_web_ide_terminal!
,
only:
[
:cancel
,
:retry
]
feature_category
:web_ide
def
check_config
return
respond_422
unless
branch_sha
...
...
app/controllers/projects/wikis_controller.rb
View file @
a3a6f8af
...
...
@@ -5,6 +5,8 @@ class Projects::WikisController < Projects::ApplicationController
alias_method
:container
,
:project
feature_category
:wiki
def
git_access
end
end
ee/app/controllers/projects/vulnerability_feedback_controller.rb
View file @
a3a6f8af
...
...
@@ -11,6 +11,8 @@ class Projects::VulnerabilityFeedbackController < Projects::ApplicationControlle
respond_to
:json
feature_category
:vulnerability_management
def
index
# TODO: Move to finder or list service
@vulnerability_feedback
=
@project
.
vulnerability_feedback
.
with_associations
...
...
spec/controllers/every_controller_spec.rb
View file @
a3a6f8af
...
...
@@ -23,17 +23,8 @@ RSpec.describe "Every controller" do
let_it_be
(
:routes_without_category
)
do
controller_actions
.
map
do
|
controller
,
action
|
child_controller
=
controller
.
to_s
.
split
(
'::'
).
second
next
if
controller
.
feature_category_for_action
(
action
)
next
if
controller
.
to_s
.
start_with?
(
'P'
)
&&
!
child_controller
.
to_s
.
start_with?
(
'A'
,
'B'
,
'C'
,
'D'
,
'E'
,
'F'
,
'G'
,
'H'
,
'I'
,
'J'
,
'K'
,
'L'
,
'M'
,
'N'
,
'O'
,
'P'
,
'Q'
,
'R'
,
'S'
,
'T'
)
"
#{
controller
}
#
#{
action
}
"
end
.
compact
end
...
...
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