Commit d469b49f authored by Sean McGivern's avatar Sean McGivern

Merge branch '2280-fix-commit-search' into 'master'

Fix commit search on some elasticsearch indexes

Closes #2280

See merge request !1745
parents 448a3747 ee7bd7f6
...@@ -55,7 +55,7 @@ module Elastic ...@@ -55,7 +55,7 @@ module Elastic
commits = response.map do |result| commits = response.map do |result|
sha = result["_source"]["commit"]["sha"] sha = result["_source"]["commit"]["sha"]
project_id = result["_source"]["commit"]["rid"] project_id = result["_source"]["commit"]["rid"].to_i
projects[project_id].try(:commit, sha) projects[project_id].try(:commit, sha)
end.compact end.compact
......
---
title: Fix commit search on some elasticsearch indexes
merge_request: 1745
author:
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