Backfill ci catalog index
What does this MR do and why?
The merge request adds a new migration to backfill the boolean ci_catalog
index. The migration is batched with a batch size of 9,000 and a throttle delay of 10 seconds. Parent issue.
How to set up and validate locally
- Checkout my branch
- Check that none of the project's elasticseach data have the
ci_catalog: (true/false)
boolean by runningproject.__elasticsearch__.as_indexed_json
on any of the project you have locally. - Run migration with
Elastic::DataMigrationService[20231017171659].send(:migration).migrate
- Validate that the boolean is present in projects with
project.__elasticsearch__.as_indexed_json
by finding ci_catalog value set to either true or false depending whether the project is marked at catalog resource or not.
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 Kasia Misirli