Commit 509771e3 authored by DJ Mountney's avatar DJ Mountney

Merge branch '1958-fix-elastic-rake-task' into 'master'

Check the right index mapping based on Rails environment for rake gitlab:elastic:add_feature_visiblity_levels_to_project

Closes #1958

See merge request !1473
parents e4363d48 baf5d4e1
---
title: Check the right index mapping based on Rails environment for rake gitlab:elastic:add_feature_visiblity_levels_to_project
merge_request: 1473
author:
......@@ -120,7 +120,7 @@ namespace :gitlab do
#### Check if this task has already been run ####
mapping = client.indices.get(index: Project.index_name)
project_fields = mapping['gitlab-development']['mappings']['project']['properties'].keys
project_fields = mapping[Project.index_name]['mappings']['project']['properties'].keys
if project_fields.include?('issues_access_level')
puts 'Index mapping is already up to date'.color(:yellow)
......
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