Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5eaedb3e
Commit
5eaedb3e
authored
Nov 02, 2018
by
George Tsiolis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move `prepend` outside the `class` block for finders
parent
bd83743a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
6 deletions
+11
-6
app/finders/autocomplete/users_finder.rb
app/finders/autocomplete/users_finder.rb
+2
-2
app/finders/issues_finder.rb
app/finders/issues_finder.rb
+2
-2
app/finders/notes_finder.rb
app/finders/notes_finder.rb
+2
-2
ee/changelogs/unreleased/gt-move-prepend-outside-the-class-block-for-finders.yml
...d/gt-move-prepend-outside-the-class-block-for-finders.yml
+5
-0
No files found.
app/finders/autocomplete/users_finder.rb
View file @
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
)
app/finders/issues_finder.rb
View file @
5eaedb3e
...
...
@@ -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
)
app/finders/notes_finder.rb
View file @
5eaedb3e
# 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
)
ee/changelogs/unreleased/gt-move-prepend-outside-the-class-block-for-finders.yml
0 → 100644
View file @
5eaedb3e
---
title
:
Move `prepend` outside the `class` block for finders
merge_request
:
8192
author
:
George Tsiolis
type
:
other
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment