Skip to content

Hide obsolete migration warning when AS not set up

What does this MR do and why?

Fixes #431420 (closed)

When AS is not setup (we check by calling Gitlab::Elastic::Helper.default.ping?), the warning about pending obsolete migrations provides no value to the user, so we don't show it.

Screenshots or screen recordings

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

Before After
image image

How to set up and validate locally

  1. Setup fresh GDK/GitLab instance with Advanced Search disabled
  2. Navigate to Advanced Search settings
  3. Observe warning being not being shown
  4. Enable Advanced Search
  5. Observe warning being shown

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 Manuel Grabowski

Merge request reports