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>2022-08-05 03:09:38 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-08-05 03:09:38 +0300
commitc9cfe41bb2b933b83324cfc975a24c548fbdb63b (patch)
tree1d3d13f94dcd79e4efcc1eb8686f70a79f5f20ad /lib/gitlab/relative_positioning
parent1793989cccd91d457aef6434e4929f318ca54b0a (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/relative_positioning')
-rw-r--r--lib/gitlab/relative_positioning/item_context.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/gitlab/relative_positioning/item_context.rb b/lib/gitlab/relative_positioning/item_context.rb
index c9392636ef1..a9966c0f3fb 100644
--- a/lib/gitlab/relative_positioning/item_context.rb
+++ b/lib/gitlab/relative_positioning/item_context.rb
@@ -162,7 +162,6 @@ module Gitlab
gap = model_class
.from(items_with_next_pos, :items)
.where('next_pos IS NULL OR ABS(pos::bigint - next_pos::bigint) >= ?', MIN_GAP)
- .limit(1)
.pick(:pos, :next_pos)
return if gap.nil? || gap.first == default_end