Enable search after indexing has completed in ES administration
Summary
This is a follow-up to !17230 (closed) / !18254 (merged) / !20421 (merged).
When first setting up ES, the user currently has to queue the indexing job in the administration, and then wait for it to complete before they can enable ES searching.
Improvements
In the backend, we need to accept a flag in the /elasticsearch/reindex
endpoint to pass on to the indexing job, which then needs to enable the application_settings.elasticsearch_searching
flag on completion.
In the frontend, this should be implemented as in the proposed designs:
Involved components
-
ee/app/assets/javascripts/elasticsearch/components/es_index_actions.vue
- The code for this already exists, but is commented out.
ee/app/services/elastic/index_projects_service.rb
ee/lib/api/elasticsearch_indices.rb