Use :elastic_delete_by_query for all :elastic specs
We should look into whether the current implementation of :elastic
used in specs can be replaced by the functionality introduced in !60651 (merged). This should significantly speed up any specs that use :elastic
but we need to make sure it won't break any existing specs.
The following discussion from !60651 (merged) should be addressed:
-
@terrichu started a discussion: (+2 comments) Was able to reduce the
ee/spec/services/search/project_service_spec.rb
spec by a good bit: https://gitlab.com/gitlab-org/gitlab/-/jobs/1224254368