Add migration for backfilling traversal_ids in blobs and wiki blobs
Compare changes
Files
2+ 99
− 0
Describe in detail what your merge request does and why.
Backfills the traversal_ids for blobs and wiki blobs in the main index, more details in the issue #351381 (closed)
Time for completion estimate calculation (internal link): 278 hours (may take a little longer due to having to work through each project). Indexing will not be paused during the migration.
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Numbered steps to set up and validate the change are strongly suggested.
traversal_ids
{
"size": 0,
"query": {
"bool": {
"must_not": {
"exists": {
"field": "traversal_ids"
}
},
"must": {
"terms": {
"type": [
"blob",
"wiki_blob"
]
}
}
}
},
"aggs": {
"my-agg-name": {
"terms": {
"size": 1000,
"field": "project_id"
}
}
}
}
require File.expand_path('ee/elastic/migrate/20221221110300_add_traversal_ids_in_blobs_and_wiki_blobs.rb')
BackfillTraversalIdsToBlobsAndWikiBlobs.new(20221221110300).migrate
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #351381 (closed)