Skip to content

ES Admin UI with multiple indices support [FE]

Denys Mishunov requested to merge es-admin-step2-fe into es-admin-step2

What does this MR do?

Introduces brand-new Vue application for Elasticsearch Admin UI with support for multiple indices. Please, reference:

for more information.

With some exceptions, eventually branched off into the follow-up issues, this MR provides support for Step 2: Support multiple indices to Elasticsearch Admin options.

This MR should not be merged and will be picked up by Search group whenever it fits the schedule.

Automated tests

There are quite a few test failures for now due to WIP nature of this MR. Also, this MR is part of a bigger picture with BE involved in its own MR and those other parts are not necessarily ready yet.

  • ee/spec/elastic_integration will be taken care of at a later point, when API is settled
  • This might require new QA tests (there are none for Elasticsaearch so far)

How to click-test?

IMPORTANT Make sure you have Elasticsearch installed and running in your gdk before testing.

Adding a new index

  • Go to Admin Area → Elasticsearch
  • If you don't have any GitLab index from before, an empty state screen will be shown with Create new GitLab index button
  • If you did have any index from before, you will be presented with the list of existing indices with Add GitLab index button above the list to the right

Pausing indexing

  • While on the indices list, click Pause indexing.
    • NOTE: if instead, you see a green Resume Indexing button, this means the indexing is not running atm
  • A modal will be shown with explanatory text and orange Pause indexing button at the bottom
  • Click the Pause indexing button in the modal
  • The modal gets dismissed
  • The Pause indexing gets replaced with the green Resume Indexing button

Resuming indexing

  • While on the indices list, click the green Resume Indexing button.
  • A modal will be shown with explanatory text
  • If you want to perform a full reindexing after resuming the indexing, make sure the Reindex data after resuming to index is checked. However, it doesn't change anything in the UI
  • Click the Resume Indexing button in the modal
  • The modal gets dismissed
  • The green Resume Indexing gets replaced with the Pause indexing button

Global Reindexing

  • While on the indices list, click Reindex button
  • A modal will be shown with explanatory text and green Reindex button at the bottom
  • Click the Reindex button in the modal
  • The modal gets dismissed
  • If reindexing has been successfully initialized (not finished! as it might take several days) a corresponding message will be shown
  • If Indexing has been previously Paused (green Resume indexing button), Reindexing resumes indexing automatically

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

References #32056 (closed)

Edited by Markus Koller

Merge request reports