Commit 43daa7c8 authored by Yorick Peterse's avatar Yorick Peterse

Merge branch 'gt-move-prepend-outside-the-class-block-for-finders' into 'master'

Move `prepend` outside the `class` block for finders

See merge request gitlab-org/gitlab-ee!8192
parents 32655ecc 5eaedb3e
......@@ -2,8 +2,6 @@
module Autocomplete
class UsersFinder
prepend EE::Autocomplete::UsersFinder
# The number of users to display in the results is hardcoded to 20, and
# pagination is not supported. This ensures that performance remains
# consistent and removes the need for implementing keyset pagination to
......@@ -87,3 +85,5 @@ module Autocomplete
end
end
end
Autocomplete::UsersFinder.prepend(EE::Autocomplete::UsersFinder)
......@@ -25,8 +25,6 @@
# updated_before: datetime
#
class IssuesFinder < IssuableFinder
prepend EE::IssuesFinder
CONFIDENTIAL_ACCESS_LEVEL = Gitlab::Access::REPORTER
def self.scalar_params
......@@ -151,3 +149,5 @@ class IssuesFinder < IssuableFinder
end
end
end
IssuesFinder.prepend(EE::IssuesFinder)
# frozen_string_literal: true
class NotesFinder
prepend EE::NotesFinder
FETCH_OVERLAP = 5.seconds
# Used to filter Notes
......@@ -143,3 +141,5 @@ class NotesFinder
@params[:notes_filter].present?
end
end
NotesFinder.prepend(EE::NotesFinder)
---
title: Move `prepend` outside the `class` block for finders
merge_request: 8192
author: George Tsiolis
type: other
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