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
f69d8170
Commit
f69d8170
authored
Oct 02, 2020
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add feature categories to controllers beginning with I
parent
780f8065
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
1 deletion
+12
-1
app/controllers/ide_controller.rb
app/controllers/ide_controller.rb
+2
-0
app/controllers/import/available_namespaces_controller.rb
app/controllers/import/available_namespaces_controller.rb
+2
-0
app/controllers/import/base_controller.rb
app/controllers/import/base_controller.rb
+1
-0
app/controllers/import/bulk_imports_controller.rb
app/controllers/import/bulk_imports_controller.rb
+2
-0
app/controllers/import/gitlab_groups_controller.rb
app/controllers/import/gitlab_groups_controller.rb
+2
-0
app/controllers/invites_controller.rb
app/controllers/invites_controller.rb
+2
-0
spec/controllers/every_controller_spec.rb
spec/controllers/every_controller_spec.rb
+1
-1
No files found.
app/controllers/ide_controller.rb
View file @
f69d8170
...
...
@@ -11,6 +11,8 @@ class IdeController < ApplicationController
push_frontend_feature_flag
(
:schema_linting
)
end
feature_category
:web_ide
def
index
Gitlab
::
UsageDataCounters
::
WebIdeCounter
.
increment_views_count
end
...
...
app/controllers/import/available_namespaces_controller.rb
View file @
f69d8170
# frozen_string_literal: true
class
Import::AvailableNamespacesController
<
ApplicationController
feature_category
:importers
def
index
render
json:
NamespaceSerializer
.
new
.
represent
(
current_user
.
manageable_groups_with_routes
)
end
...
...
app/controllers/import/base_controller.rb
View file @
f69d8170
...
...
@@ -4,6 +4,7 @@ class Import::BaseController < ApplicationController
include
ActionView
::
Helpers
::
SanitizeHelper
before_action
:import_rate_limit
,
only:
[
:create
]
feature_category
:importers
def
status
respond_to
do
|
format
|
...
...
app/controllers/import/bulk_imports_controller.rb
View file @
f69d8170
...
...
@@ -4,6 +4,8 @@ class Import::BulkImportsController < ApplicationController
before_action
:ensure_group_import_enabled
before_action
:verify_blocked_uri
,
only: :status
feature_category
:importers
def
configure
session
[
access_token_key
]
=
params
[
access_token_key
]
&
.
strip
session
[
url_key
]
=
params
[
url_key
]
...
...
app/controllers/import/gitlab_groups_controller.rb
View file @
f69d8170
...
...
@@ -6,6 +6,8 @@ class Import::GitlabGroupsController < ApplicationController
before_action
:ensure_group_import_enabled
before_action
:import_rate_limit
,
only:
%i[create]
feature_category
:importers
def
create
unless
file_is_valid?
(
group_params
[
:file
])
return
redirect_back_or_default
(
options:
{
alert:
s_
(
'GroupImport|Unable to process group import file'
)
})
...
...
app/controllers/invites_controller.rb
View file @
f69d8170
...
...
@@ -12,6 +12,8 @@ class InvitesController < ApplicationController
respond_to
:html
feature_category
:authentication_and_authorization
def
show
track_new_user_invite_experiment
(
'opened'
)
accept
if
skip_invitation_prompt?
...
...
spec/controllers/every_controller_spec.rb
View file @
f69d8170
...
...
@@ -26,7 +26,7 @@ RSpec.describe "Every controller" do
next
if
controller
.
feature_category_for_action
(
action
)
next
unless
controller
.
to_s
.
start_with?
(
'B'
,
'C'
,
'D'
,
'E'
,
'F'
,
'H'
,
'H'
,
'I'
,
'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