Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-11-25 15:06:13 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-25 15:06:13 +0300
commit8f1f6b374b69fd6356bdc5561d56f5ca9db9fadd (patch)
tree9b81a74772b269cf3d851ed2d29f97c31985b98a /lib/gitlab/graphql
parentdbd50b6e203994cdb393494faa8fc1b2fb406487 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/graphql')
-rw-r--r--lib/gitlab/graphql/connections/keyset/connection.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/gitlab/graphql/connections/keyset/connection.rb b/lib/gitlab/graphql/connections/keyset/connection.rb
index c75ea206edb..e42a705a78a 100644
--- a/lib/gitlab/graphql/connections/keyset/connection.rb
+++ b/lib/gitlab/graphql/connections/keyset/connection.rb
@@ -137,14 +137,7 @@ module Gitlab
def ordering_from_encoded_json(cursor)
JSON.parse(decode(cursor))
rescue JSON::ParserError
- # for the transition period where a client might request using an
- # old style cursor. Once removed, make it an error:
- # raise Gitlab::Graphql::Errors::ArgumentError, "Please provide a valid cursor"
- # TODO can be removed in next release
- # https://gitlab.com/gitlab-org/gitlab/issues/32933
- field_name = order_list.first.attribute_name
-
- { field_name => decode(cursor) }
+ raise Gitlab::Graphql::Errors::ArgumentError, "Please provide a valid cursor"
end
end
end