Add info about obsolete migrations to elastic rake tasks
What does this MR do and why?
Related to #413524 (closed)
We've run into a lot of issues where major upgrades are performed but Advanced Search migrations are not completed from the previous version. Currently the info that a migration is obsolete is available in logging only. This MR will provide customers and support team members a better view of the state of Advanced Search migrations.
The MR adds info about obsolete migrations to elastic rake tasks and update specs.
-
gitlab:elastic:info
added obsolete to list of pending migrations and to current migration info -
gitlab:elastic:list_pending_migrations
added obsolete to list of pending migrations
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
- make sure gdk is setup for elasticsearch
- advanced search is enabled/setup
- manually delete a few migrations from the migrations index (note: this will require you to reindex everything from scratch)
curl --request DELETE --url http://localhost:9200/gitlab-development-migrations/_doc/20201105181100 curl --request DELETE --url http://localhost:9200/gitlab-development-migrations/_doc/20230320011400
bundle exec rake gitlab:elastic:info
bundle exect rake gitlab:elastic:list_pending_migrations
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Terri Chu