Create a new work items index
What does this MR do and why?
We are adding a new work items index to index the WorkItem
records in elasticsearch
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.
- Make sure you have advanced search enabled.
- From the terminal run
bin/rails gitlab:elastic:index
- Then from the rails console run
::Elastic::ProcessBookkeepingService.track!(*WorkItem.all)
- Notice in the elasticsearch you will see the new index with alias
gitlab-development-work_items
and it will have some newly indexed docs
Related to #454046 (closed)
Edited by Siddharth Dungarwal