Commit e5c047da authored by Luke Duncalfe's avatar Luke Duncalfe

Set low Apdex SLO for slow API v3 endpoints

This is a temporary measure taken until Integrations optimised these
endpoints in:

- https://gitlab.com/gitlab-org/gitlab/-/issues/337269
- https://gitlab.com/gitlab-org/gitlab/-/issues/337268

https://gitlab.com/gitlab-org/gitlab/-/issues/349847
parent e8a5daa9
...@@ -183,7 +183,9 @@ module API ...@@ -183,7 +183,9 @@ module API
params do params do
use :project_full_path use :project_full_path
end 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) user_project = find_project_with_access(params)
merge_requests = authorized_merge_requests_for_project(user_project) merge_requests = authorized_merge_requests_for_project(user_project)
...@@ -236,7 +238,9 @@ module API ...@@ -236,7 +238,9 @@ module API
use :project_full_path use :project_full_path
use :pagination use :pagination
end 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) user_project = find_project_with_access(params)
update_project_feature_usage_for(user_project) 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