Commit b942340b authored by Bob Van Landuyt's avatar Bob Van Landuyt

Merge branch '349847-mark-integrations-api-endpoints-as-low-urgency' into 'master'

Set low Apdex SLO for slow API v3 endpoints

See merge request gitlab-org/gitlab!78142
parents 053c8373 e5c047da
......@@ -183,7 +183,9 @@ module API
params do
use :project_full_path
end
get ':namespace/:project/pulls' do
# TODO Remove the custom Apdex SLO target `urgency: :low` when this endpoint has been optimised.
# https://gitlab.com/gitlab-org/gitlab/-/issues/337269
get ':namespace/:project/pulls', urgency: :low do
user_project = find_project_with_access(params)
merge_requests = authorized_merge_requests_for_project(user_project)
......@@ -236,7 +238,9 @@ module API
use :project_full_path
use :pagination
end
get ':namespace/:project/branches' do
# TODO Remove the custom Apdex SLO target `urgency: :low` when this endpoint has been optimised.
# https://gitlab.com/gitlab-org/gitlab/-/issues/337268
get ':namespace/:project/branches', urgency: :low do
user_project = find_project_with_access(params)
update_project_feature_usage_for(user_project)
......
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