From 391beda74a957bfa72144cca886ace03a2db4e92 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Tue, 18 Jan 2022 21:16:02 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- app/controllers/graphql_controller.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'app/controllers/graphql_controller.rb') diff --git a/app/controllers/graphql_controller.rb b/app/controllers/graphql_controller.rb index f48d03869a4..689ca32f6d9 100644 --- a/app/controllers/graphql_controller.rb +++ b/app/controllers/graphql_controller.rb @@ -44,6 +44,13 @@ class GraphqlController < ApplicationController # The default feature category is overridden to read from request feature_category :not_owned + # We don't know what the query is going to be, so we can't set a high urgency + # See https://gitlab.com/groups/gitlab-org/-/epics/5841 for the work that will + # allow us to specify an urgency per query. + # Currently, all queries have a default urgency. And this is measured in the `graphql_queries` + # SLI. But queries could be multiplexed, so the total duration could be longer. + urgency :low, [:execute] + def execute result = multiplex? ? execute_multiplex : execute_query render json: result -- cgit v1.2.3