Delete Project and related data in ES if use_elasticsearch? is false
What does this MR do and why?
-
This MR will call the
ElasticDeleteProjectWorker
fromElasticWikiIndexerWorker
if theProject
does not exist or.use_elasticsearch?
is false. We should remove theproject
and associated ES documents if the Project is deleted or it is not using elasticsearch. -
This MR will call the
ElasticDeleteProjectWorker
fromElasticCommitIndexerWorker
ifuse_elasticsearch?
is false for theProject
. -
Also removing the
space_requirements
from the migration file as it is not used. -
If the
ee/lib/gitlab/elastic/indexer.rb
if thecommit
is 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