Commit 7bd4fc2a authored by Valery Sizov's avatar Valery Sizov

[Elastic] Stabilize database indexer if database is inconsistent

parent fb561a15
...@@ -3,6 +3,7 @@ Please view this file on the master branch, on stable branches it's out of date. ...@@ -3,6 +3,7 @@ Please view this file on the master branch, on stable branches it's out of date.
v 8.7.0 (unreleased) v 8.7.0 (unreleased)
- Update GitLab Pages to 0.2.1: support user-defined 404 pages - Update GitLab Pages to 0.2.1: support user-defined 404 pages
- Refactor group sync to pull access level logic to its own class. !306 - Refactor group sync to pull access level logic to its own class. !306
- [Elastic] Stabilize database indexer if database is inconsistent
v 8.6.5 v 8.6.5
- No EE-specific changes - No EE-specific changes
......
...@@ -38,8 +38,8 @@ module Elastic ...@@ -38,8 +38,8 @@ module Elastic
data[attr.to_s] = self.send(attr) data[attr.to_s] = self.send(attr)
end end
data['project'] = { 'id' => project.id } data['project'] = { 'id' => project_id }
data['author'] = { 'id' => author.id } data['author'] = { 'id' => author_id }
data['updated_at_sort'] = updated_at data['updated_at_sort'] = updated_at
data data
end end
......
...@@ -58,7 +58,7 @@ module Elastic ...@@ -58,7 +58,7 @@ module Elastic
data['source_project'] = { 'id' => source_project_id } data['source_project'] = { 'id' => source_project_id }
data['target_project'] = { 'id' => target_project_id } data['target_project'] = { 'id' => target_project_id }
data['author'] = { 'id' => author.id } data['author'] = { 'id' => author_id }
data['updated_at_sort'] = updated_at data['updated_at_sort'] = updated_at
data data
end end
......
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