Backend: Backfill boolean `ci_catalog` index
Proposal
A boolean ci_catalog
was introduced in the MR: Advanced search migration for catalog resources (!121562 - merged). This issue is for backfilling projects that are marked as a catalog resource so they can be searchable.
Implementation Details
This is the migration that is necessary (needs double checking):
class BackfillCiCatalogOnProject < Elastic::Migration
include Elastic::MigrationBackfillHelper
batched!
batch_size 9_000
UPDATE_BATCH_SIZE = 100
private
def index_name
Project.__elasticsearch__.index_name
end
def field_name
[:ci_catalog]
end
end
Edited by Laura Montemayor