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
bf50c890
Commit
bf50c890
authored
Feb 19, 2016
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ES indexer] Stabilze indexer when serialized data is corrupted
parent
cfe4382e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
5 deletions
+25
-5
CHANGELOG-EE
CHANGELOG-EE
+2
-1
lib/elastic/merge_requests_search.rb
lib/elastic/merge_requests_search.rb
+17
-2
lib/elastic/milestones_search.rb
lib/elastic/milestones_search.rb
+3
-1
lib/elastic/notes_search.rb
lib/elastic/notes_search.rb
+3
-1
No files found.
CHANGELOG-EE
View file @
bf50c890
...
...
@@ -4,7 +4,8 @@ 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
- GitLab Pages gets support for custom domain and custom certificate
- Fix of Elastic indexer. It should not trigger record validation.
- Fix of Elastic indexer. It should not trigger record validation for projects
- Fix of Elastic indexer. Stabilze indexer when serialized data is corrupted
v 8.4.4
- Re-introduce "Send email to users" link in Admin area
...
...
lib/elastic/merge_requests_search.rb
View file @
bf50c890
...
...
@@ -34,13 +34,28 @@ module Elastic
end
def
as_indexed_json
(
options
=
{})
as_json
(
as_json
({
only:
[
:id
,
:iid
,
:target_branch
,
:source_branch
,
:title
,
:description
,
:created_at
,
:updated_at
,
:state
,
:merge_status
,
:source_project_id
,
:target_project_id
,
:author_id
],
include:
{
source_project:
{
only: :id
},
target_project:
{
only: :id
},
author:
{
only: :id
}
}
).
merge
({
updated_at_sort:
updated_at
})
}
).
merge
({
updated_at_sort:
updated_at
})
end
def
self
.
elastic_search
(
query
,
options:
{})
...
...
lib/elastic/milestones_search.rb
View file @
bf50c890
...
...
@@ -18,7 +18,9 @@ module Elastic
end
def
as_indexed_json
(
options
=
{})
as_json
.
merge
({
updated_at_sort:
updated_at
})
as_json
(
only:
[
:id
,
:title
,
:description
,
:project_id
,
:created_at
]
).
merge
({
updated_at_sort:
updated_at
})
end
def
self
.
elastic_search
(
query
,
options:
{})
...
...
lib/elastic/notes_search.rb
View file @
bf50c890
...
...
@@ -16,7 +16,9 @@ module Elastic
end
def
as_indexed_json
(
options
=
{})
as_json
.
merge
({
updated_at_sort:
updated_at
})
as_json
(
only:
[
:id
,
:note
,
:project_id
,
:created_at
]
).
merge
({
updated_at_sort:
updated_at
})
end
def
self
.
elastic_search
(
query
,
options:
{})
...
...
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