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
a3df67a4
Commit
a3df67a4
authored
Jan 28, 2016
by
Valery Sizov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'es_durable_wiki_indexer' into 'master'
More reliable wiki indexer See merge request !148
parents
a7db890b
2e5dd1fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
CHANGELOG-EE
CHANGELOG-EE
+1
-0
lib/tasks/gitlab/elastic.rake
lib/tasks/gitlab/elastic.rake
+13
-1
No files found.
CHANGELOG-EE
View file @
a3df67a4
...
...
@@ -2,6 +2,7 @@ Please view this file on the master branch, on stable branches it's out of date.
v 8.5.0 (unreleased)
- Show warning when mirror repository default branch could not be updated because it has diverged from upstream.
- More reliable wiki indexer
v 8.4.2
- Elasticsearch indexer performance improvements
...
...
lib/tasks/gitlab/elastic.rake
View file @
a3df67a4
...
...
@@ -21,7 +21,19 @@ namespace :gitlab do
desc
"Indexing all wikis"
task
index_wikis: :environment
do
ProjectWiki
.
import
ProjectWiki
.
__elasticsearch__
.
create_index!
Project
.
where
(
wiki_enabled:
true
).
find_each
do
|
project
|
unless
project
.
wiki
.
empty?
puts
"Indexing wiki of
#{
project
.
name_with_namespace
}
..."
begin
project
.
wiki
.
index_blobs
puts
"Done!"
.
green
rescue
StandardError
=>
e
puts
"
#{
e
.
message
}
, trace -
#{
e
.
backtrace
}
"
end
end
end
end
desc
"Create indexes in the Elasticsearch from database records"
...
...
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