Skip to content

Projects::CommitsController#show doesn't use Elasticsearch if available

Noted in gitaly#169 (closed)

This controller implements search functionality specifically for commits. However, it reaches into Repository#find_commits_by_message directly, instead of using a SearchService.

On GitLab EE, this means elasticsearch is never used.

Let's make the fix in CE, and have it use the appropriate SearchService instead.