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
c0c37cac
Commit
c0c37cac
authored
Dec 09, 2021
by
Sincheol (David) Kim
Committed by
Bob Van Landuyt
Dec 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set 'Low' Custom Error Budget Thresholds - Rails Controllers
parent
3f7be75b
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
59 additions
and
0 deletions
+59
-0
app/controllers/autocomplete_controller.rb
app/controllers/autocomplete_controller.rb
+2
-0
app/controllers/dashboard_controller.rb
app/controllers/dashboard_controller.rb
+2
-0
app/controllers/groups/autocomplete_sources_controller.rb
app/controllers/groups/autocomplete_sources_controller.rb
+2
-0
app/controllers/groups_controller.rb
app/controllers/groups_controller.rb
+1
-0
app/controllers/projects/autocomplete_sources_controller.rb
app/controllers/projects/autocomplete_sources_controller.rb
+2
-0
app/controllers/projects/merge_requests/conflicts_controller.rb
...ntrollers/projects/merge_requests/conflicts_controller.rb
+6
-0
app/controllers/projects/merge_requests/content_controller.rb
...controllers/projects/merge_requests/content_controller.rb
+5
-0
app/controllers/projects/merge_requests/creations_controller.rb
...ntrollers/projects/merge_requests/creations_controller.rb
+9
-0
app/controllers/projects/merge_requests/diffs_controller.rb
app/controllers/projects/merge_requests/diffs_controller.rb
+7
-0
app/controllers/projects/merge_requests/drafts_controller.rb
app/controllers/projects/merge_requests/drafts_controller.rb
+7
-0
app/controllers/projects/merge_requests_controller.rb
app/controllers/projects/merge_requests_controller.rb
+15
-0
ee/app/controllers/groups/merge_requests_controller.rb
ee/app/controllers/groups/merge_requests_controller.rb
+1
-0
No files found.
app/controllers/autocomplete_controller.rb
View file @
c0c37cac
...
@@ -9,6 +9,8 @@ class AutocompleteController < ApplicationController
...
@@ -9,6 +9,8 @@ class AutocompleteController < ApplicationController
feature_category
:code_review
,
[
:merge_request_target_branches
]
feature_category
:code_review
,
[
:merge_request_target_branches
]
feature_category
:continuous_delivery
,
[
:deploy_keys_with_owners
]
feature_category
:continuous_delivery
,
[
:deploy_keys_with_owners
]
urgency
:low
,
[
:merge_request_target_branches
]
def
users
def
users
group
=
Autocomplete
::
GroupFinder
group
=
Autocomplete
::
GroupFinder
.
new
(
current_user
,
project
,
params
)
.
new
(
current_user
,
project
,
params
)
...
...
app/controllers/dashboard_controller.rb
View file @
c0c37cac
...
@@ -18,6 +18,8 @@ class DashboardController < Dashboard::ApplicationController
...
@@ -18,6 +18,8 @@ class DashboardController < Dashboard::ApplicationController
feature_category
:team_planning
,
[
:issues
,
:issues_calendar
]
feature_category
:team_planning
,
[
:issues
,
:issues_calendar
]
feature_category
:code_review
,
[
:merge_requests
]
feature_category
:code_review
,
[
:merge_requests
]
urgency
:low
,
[
:merge_requests
]
def
activity
def
activity
respond_to
do
|
format
|
respond_to
do
|
format
|
format
.
html
format
.
html
...
...
app/controllers/groups/autocomplete_sources_controller.rb
View file @
c0c37cac
...
@@ -5,6 +5,8 @@ class Groups::AutocompleteSourcesController < Groups::ApplicationController
...
@@ -5,6 +5,8 @@ class Groups::AutocompleteSourcesController < Groups::ApplicationController
feature_category
:team_planning
,
[
:issues
,
:labels
,
:milestones
,
:commands
]
feature_category
:team_planning
,
[
:issues
,
:labels
,
:milestones
,
:commands
]
feature_category
:code_review
,
[
:merge_requests
]
feature_category
:code_review
,
[
:merge_requests
]
urgency
:low
,
[
:merge_requests
]
def
members
def
members
render
json:
::
Groups
::
ParticipantsService
.
new
(
@group
,
current_user
).
execute
(
target
)
render
json:
::
Groups
::
ParticipantsService
.
new
(
@group
,
current_user
).
execute
(
target
)
end
end
...
...
app/controllers/groups_controller.rb
View file @
c0c37cac
...
@@ -60,6 +60,7 @@ class GroupsController < Groups::ApplicationController
...
@@ -60,6 +60,7 @@ class GroupsController < Groups::ApplicationController
feature_category
:importers
,
[
:export
,
:download_export
]
feature_category
:importers
,
[
:export
,
:download_export
]
urgency
:high
,
[
:unfoldered_environment_names
]
urgency
:high
,
[
:unfoldered_environment_names
]
urgency
:low
,
[
:merge_requests
]
def
index
def
index
redirect_to
(
current_user
?
dashboard_groups_path
:
explore_groups_path
)
redirect_to
(
current_user
?
dashboard_groups_path
:
explore_groups_path
)
...
...
app/controllers/projects/autocomplete_sources_controller.rb
View file @
c0c37cac
...
@@ -8,6 +8,8 @@ class Projects::AutocompleteSourcesController < Projects::ApplicationController
...
@@ -8,6 +8,8 @@ class Projects::AutocompleteSourcesController < Projects::ApplicationController
feature_category
:users
,
[
:members
]
feature_category
:users
,
[
:members
]
feature_category
:snippets
,
[
:snippets
]
feature_category
:snippets
,
[
:snippets
]
urgency
:low
,
[
:merge_requests
]
def
members
def
members
render
json:
::
Projects
::
ParticipantsService
.
new
(
@project
,
current_user
).
execute
(
target
)
render
json:
::
Projects
::
ParticipantsService
.
new
(
@project
,
current_user
).
execute
(
target
)
end
end
...
...
app/controllers/projects/merge_requests/conflicts_controller.rb
View file @
c0c37cac
...
@@ -5,6 +5,12 @@ class Projects::MergeRequests::ConflictsController < Projects::MergeRequests::Ap
...
@@ -5,6 +5,12 @@ class Projects::MergeRequests::ConflictsController < Projects::MergeRequests::Ap
before_action
:authorize_can_resolve_conflicts!
before_action
:authorize_can_resolve_conflicts!
urgency
:low
,
[
:show
,
:conflict_for_path
,
:resolve_conflicts
]
def
show
def
show
respond_to
do
|
format
|
respond_to
do
|
format
|
format
.
html
do
format
.
html
do
...
...
app/controllers/projects/merge_requests/content_controller.rb
View file @
c0c37cac
...
@@ -13,6 +13,11 @@ class Projects::MergeRequests::ContentController < Projects::MergeRequests::Appl
...
@@ -13,6 +13,11 @@ class Projects::MergeRequests::ContentController < Projects::MergeRequests::Appl
FAST_POLLING_INTERVAL
=
10
.
seconds
.
in_milliseconds
FAST_POLLING_INTERVAL
=
10
.
seconds
.
in_milliseconds
SLOW_POLLING_INTERVAL
=
5
.
minutes
.
in_milliseconds
SLOW_POLLING_INTERVAL
=
5
.
minutes
.
in_milliseconds
urgency
:low
,
[
:widget
,
:cached_widget
]
def
widget
def
widget
respond_to
do
|
format
|
respond_to
do
|
format
|
format
.
json
do
format
.
json
do
...
...
app/controllers/projects/merge_requests/creations_controller.rb
View file @
c0c37cac
...
@@ -10,6 +10,15 @@ class Projects::MergeRequests::CreationsController < Projects::MergeRequests::Ap
...
@@ -10,6 +10,15 @@ class Projects::MergeRequests::CreationsController < Projects::MergeRequests::Ap
before_action
:apply_diff_view_cookie!
,
only:
[
:diffs
,
:diff_for_path
]
before_action
:apply_diff_view_cookie!
,
only:
[
:diffs
,
:diff_for_path
]
before_action
:build_merge_request
,
except:
[
:create
]
before_action
:build_merge_request
,
except:
[
:create
]
urgency
:low
,
[
:new
,
:create
,
:pipelines
,
:diffs
,
:branch_from
,
:branch_to
]
def
new
def
new
define_new_vars
define_new_vars
end
end
...
...
app/controllers/projects/merge_requests/diffs_controller.rb
View file @
c0c37cac
...
@@ -14,6 +14,13 @@ class Projects::MergeRequests::DiffsController < Projects::MergeRequests::Applic
...
@@ -14,6 +14,13 @@ class Projects::MergeRequests::DiffsController < Projects::MergeRequests::Applic
after_action
:track_viewed_diffs_events
,
only:
[
:diffs_batch
]
after_action
:track_viewed_diffs_events
,
only:
[
:diffs_batch
]
urgency
:low
,
[
:show
,
:diff_for_path
,
:diffs_batch
,
:diffs_metadata
]
def
show
def
show
render_diffs
render_diffs
end
end
...
...
app/controllers/projects/merge_requests/drafts_controller.rb
View file @
c0c37cac
...
@@ -9,6 +9,13 @@ class Projects::MergeRequests::DraftsController < Projects::MergeRequests::Appli
...
@@ -9,6 +9,13 @@ class Projects::MergeRequests::DraftsController < Projects::MergeRequests::Appli
before_action
:authorize_admin_draft!
,
only:
[
:update
,
:destroy
]
before_action
:authorize_admin_draft!
,
only:
[
:update
,
:destroy
]
before_action
:authorize_admin_draft!
,
if:
->
{
action_name
==
'publish'
&&
params
[
:id
].
present?
}
before_action
:authorize_admin_draft!
,
if:
->
{
action_name
==
'publish'
&&
params
[
:id
].
present?
}
urgency
:low
,
[
:create
,
:update
,
:destroy
,
:publish
]
def
index
def
index
drafts
=
prepare_notes_for_rendering
(
draft_notes
)
drafts
=
prepare_notes_for_rendering
(
draft_notes
)
render
json:
DraftNoteSerializer
.
new
(
current_user:
current_user
).
represent
(
drafts
)
render
json:
DraftNoteSerializer
.
new
(
current_user:
current_user
).
represent
(
drafts
)
...
...
app/controllers/projects/merge_requests_controller.rb
View file @
c0c37cac
...
@@ -71,6 +71,21 @@ class Projects::MergeRequestsController < Projects::MergeRequests::ApplicationCo
...
@@ -71,6 +71,21 @@ class Projects::MergeRequestsController < Projects::MergeRequests::ApplicationCo
feature_category
:continuous_integration
,
[
:pipeline_status
,
:pipelines
,
:exposed_artifacts
]
feature_category
:continuous_integration
,
[
:pipeline_status
,
:pipelines
,
:exposed_artifacts
]
urgency
:high
,
[
:export_csv
]
urgency
:high
,
[
:export_csv
]
urgency
:low
,
[
:index
,
:show
,
:commits
,
:bulk_update
,
:edit
,
:update
,
:cancel_auto_merge
,
:merge
,
:ci_environments_status
,
:destroy
,
:rebase
,
:discussions
,
:description_diff
]
def
index
def
index
@merge_requests
=
@issuables
@merge_requests
=
@issuables
...
...
ee/app/controllers/groups/merge_requests_controller.rb
View file @
c0c37cac
...
@@ -2,4 +2,5 @@
...
@@ -2,4 +2,5 @@
class
Groups::MergeRequestsController
<
Groups
::
BulkUpdateController
class
Groups::MergeRequestsController
<
Groups
::
BulkUpdateController
feature_category
:code_review
feature_category
:code_review
urgency
:low
,
[
:bulk_update
]
end
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