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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
b731feba
Commit
b731feba
authored
Feb 04, 2019
by
Jarka Košanová
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove BATCH_SIZE from WikiFileFinder
parent
b9f0eff9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
changelogs/unreleased/57223-wiki-finder.yml
changelogs/unreleased/57223-wiki-finder.yml
+5
-0
lib/gitlab/wiki_file_finder.rb
lib/gitlab/wiki_file_finder.rb
+1
-3
No files found.
changelogs/unreleased/57223-wiki-finder.yml
0 → 100644
View file @
b731feba
---
title
:
Remove BATCH_SIZE from WikiFileFinder
merge_request
:
24933
author
:
type
:
other
lib/gitlab/wiki_file_finder.rb
View file @
b731feba
...
...
@@ -2,8 +2,6 @@
module
Gitlab
class
WikiFileFinder
<
FileFinder
BATCH_SIZE
=
100
attr_reader
:repository
def
initialize
(
project
,
ref
)
...
...
@@ -19,7 +17,7 @@ module Gitlab
safe_query
=
Regexp
.
new
(
safe_query
,
Regexp
::
IGNORECASE
)
filenames
=
repository
.
ls_files
(
ref
)
filenames
.
grep
(
safe_query
)
.
first
(
BATCH_SIZE
)
filenames
.
grep
(
safe_query
)
end
end
end
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