elastic.rake: Ignore unindexed projects that have no repository
Related to #357858 (closed)
What does this MR do and why?
While reproducing an ElasticSearch issue for a large Premium customer (internal ticket), I noticed that sudo gitlab-rake gitlab:elastic:projects_not_indexed
will keep including projects that contain no repo (but issues).
Would it make sense to note that in the output, or even add a select/reject method to not include such projects in the first place?
Added specs for the rake task modified
Screenshots or screen recordings
These are strongly recommended to assist reviewers and reduce the time to merge your change.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Setup a GitLab with ES integration, and some projects with repos
- Check the Rake output before and after adding another project that contains no repository.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Terri Chu