Add migration to reindex all issues
What does this MR do and why?
Reindex all issues by tracking every issue from the database.
The migration versions are forced to be before BackfillInitialEmbeddings
because we have some documents in production which have an issue with es_id
(more details in the linked issue) that's preventing the migration from completing. Once the reindexing migration is complete, then we will delete documents with old schema version and the embeddings migration will also complete.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
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
Numbered steps to set up and validate the change are strongly suggested.
- Run the migration worker on repeat until the migrations are finished:
Elastic::MigrationWorker.new.perform
- You can also view the logs:
tail -f log/elasticsearch.log
Related to #470138 (closed)