Use project_id_from and project_id_to in the InitialIndexingEventWorker

What does this MR do and why?

Start using project_id_from and project_id_to to avoid trying to create the zoekt_repository for all the projects on each iteration of an index of a namespace having multiple indices. If there is no metadata about the project ranges then behave as it was doing previously. If there is only project_id_from then create the zoekt_repository from project_id_from and if there are both project_id_from and project_id_to then create zoekt_repository for the range of projects id (from..to) that belongs to the indexed namespace.

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

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.

Related to #509600 (closed)

Edited by Ravi Kumar

Merge request reports

Loading