Commit c0c37cac authored by Sincheol (David) Kim's avatar Sincheol (David) Kim Committed by Bob Van Landuyt

Set 'Low' Custom Error Budget Thresholds - Rails Controllers

parent 3f7be75b
...@@ -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)
......
...@@ -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
......
...@@ -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
......
...@@ -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)
......
...@@ -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
......
...@@ -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
......
...@@ -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
......
...@@ -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
......
...@@ -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
......
...@@ -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)
......
...@@ -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
......
...@@ -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
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