Reindex zoekt repo when project visibility level changes
What does this MR do and why?
Reindex zoekt repo when project visibility level changes
AI Summary
This code change adds a new feature to track when a project's visibility level changes (like making a project public, private, or internal) and automatically updates the search index when this happens.
When someone changes a project's visibility settings, the system now creates an event that contains the project details and new visibility level. This event triggers a background worker that tells the Zoekt search engine to re-index the project so that search results respect the new visibility rules - ensuring users can only find projects they're allowed to see.
The implementation includes the event definition, integration into the project update process, a background worker to handle the search re-indexing, proper error handling, and comprehensive tests to verify everything works correctly.
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.