Skip to content

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

  1. setup gdk for elasticsearch
  2. checkout master branch
  3. recreate the indexes from scratch: bundle exec rake gitlab:elastic:index
  4. validate indexing is complete for all projects: bundle exec rake gitlab:elastic:index_projects_status
  5. check this branch out
  6. 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)
  7. 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.

Edited by Terri Chu

Merge request reports