Reindex required alert shows up when indexes are not created
Summary
The Reindex required
alert shows up when no indexes have been created
Steps to reproduce
- Start up a new instance of Elasticsearch
- navigate to the Admin - Settings - Advanced Search page
- see the alert
What is the current bug behavior?
The alert shows up on a new install of Elasticsearch (before indexing occurs)
What is the expected correct behavior?
The alert should only show up when the indexes exist and are not using aliases
Possible fixes
the elastic_search_warn_if_not_using_aliases
method in the applications_settings_controller.rb should check if indexes exist in addition to checking if the aliases are missing
Edited by Terri Chu