Skip to content

Hide reindexing required alert when index does not exist

Cleveland Bledsoe Jr requested to merge cleveland-reindex-warning into master

What does this MR do and why?

This adds an additional check to determine if the index exists. Resolves #362161 (closed)

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
before_index_created_ui after_index_created_ui

How to set up and validate locally

  1. Setup fresh GDK/GitLab instance with Advanced Search disabled and no index created
  2. Navigate to Advanced Search settings
  3. Observe warning being not being shown
  4. Enable Advanced Search and create an index.
  5. Observe warning is still not shown.
  6. Delete an alias: curl -X DELETE "localhost:9200/gitlab-development-*/_alias/gitlab-development"
  7. Observe the warning once the index exists and an alias is removed

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Cleveland Bledsoe Jr

Merge request reports

Loading