Commit baf5d4e1 authored by Nick Thomas's avatar Nick Thomas

Check the right index mapping based on Rails environment for rake...

Check the right index mapping based on Rails environment for rake gitlab:elastic:add_feature_visiblity_levels_to_project
parent 636e1023
---
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