Delete Project and related data in ES if use_elasticsearch? is false
What does this MR do and why?
-
This MR will call the
ElasticDeleteProjectWorkerfromElasticWikiIndexerWorkerif theProjectdoes not exist or.use_elasticsearch?is false. We should remove theprojectand associated ES documents if the Project is deleted or it is not using elasticsearch. -
This MR will call the
ElasticDeleteProjectWorkerfromElasticCommitIndexerWorkerifuse_elasticsearch?is false for theProject. -
Also removing the
space_requirementsfrom the migration file as it is not used. -
If the
ee/lib/gitlab/elastic/indexer.rbif thecommitis not found, then we are callingpurge_unreachable_commits_from_index!
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.
Related to #410777