Add migration to remove the wiki docs from the main index
What does this MR do and why?
Since wikis are now moved to a separate index, the wiki documents from the main index can be removed.
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
Make sure Elasticsearch is enabled
- Open the Rails console
bundle exec rails c
- Run the following command
Elastic::DataMigrationService[20230724221548].send(:migration).migrate
- Now check the wiki docs on the main index. It should not have any docs
curl -XGET "http://localhost:9200/gitlab-development/_search" -H "kbn-xsrf: reporting" -H "Content-Type: application/json" -d'
{
"query": {
"bool": {
"filter": [
{
"term": {
"type": "wiki_blobs"
}
}
]
}
}
}' | json_pp
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.
Competition time
~ 9 hours
Related to #336100 (closed)
Related to Delete all the wiki documents from main index (#407560 - closed)
Edited by Ravi Kumar