Advanced Search migration to backfill traversal_ids on projects
What does this MR do and why?
Related to #214601 (closed)
Migration timing calculation (internal link): 20 hours
This MR:
- backfills the
traversal_ids
field for project documents (only if the migration where the field was added is completed) - introduces a spec to test the migration
- fixes a naming issue with a previous spec file
😅
Screenshots or screen recordings
N/A
How to set up and validate locally
- setup gdk for elasticsearch
- checkout master branch
- recreate the indexes from scratch:
bundle exec rake gitlab:elastic:index
- validate indexing is complete for all projects:
bundle exec rake gitlab:elastic:index_projects_status
- check this branch out
- run the migration manually in the rails console:
Elastic::MigrationWorker.new.perform
(may need to run this a few times and wait for the indexing process to finish) - monitor the elasticsearch.log file for completion progress
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