Reindex zoekt repo when repo access level changes
What does this MR do and why?
Reindex zoekt repo when repo access level changes
AI Summary
This change adds a new background job that automatically re-indexes projects in the search system when their repository access permissions change.
When a project's repository visibility settings are modified (like making a private repo public or vice versa), the system now triggers a search re-indexing task to ensure the search results reflect the updated access permissions. This prevents situations where users might see search results for repositories they shouldn't have access to, or miss results they should be able to see.
The implementation includes proper error handling, logging, and only runs when the search indexing feature is enabled and licensed. It also includes comprehensive tests to verify the functionality works correctly in different scenarios.
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.