Commit dae2e0ba authored by Igor Drozdov's avatar Igor Drozdov

Merge branch 'improve-members-autocomplete' into 'master'

Disable replace_methods in users autocomplete

See merge request gitlab-org/gitlab!71262
parents fdcf6a41 6d0b7bab
...@@ -83,7 +83,7 @@ module Users ...@@ -83,7 +83,7 @@ module Users
end end
def lazy_user_availability(user) def lazy_user_availability(user)
BatchLoader.for(user.id).batch do |user_ids, loader| BatchLoader.for(user.id).batch(replace_methods: false) do |user_ids, loader|
user_ids.each_slice(1_000) do |sliced_user_ids| user_ids.each_slice(1_000) do |sliced_user_ids|
UserStatus UserStatus
.select(:user_id, :availability) .select(:user_id, :availability)
......
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