Commit 10e9ebf1 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre

Merge branch 'remove-dead-elastic-worker-code' into 'master'

Remove dead code in ElasticIndexerWorker

See merge request gitlab-org/gitlab!21623
parents af69fb12 e88b5dd7
# frozen_string_literal: true # frozen_string_literal: true
class ElasticIndexerWorker class ElasticIndexerWorker
include ApplicationWorker include ApplicationWorker
include Elasticsearch::Model::Client::ClassMethods include Elasticsearch::Model::Client::ClassMethods
...@@ -48,17 +49,6 @@ class ElasticIndexerWorker ...@@ -48,17 +49,6 @@ class ElasticIndexerWorker
IndexStatus.for_project(record_id).delete_all IndexStatus.for_project(record_id).delete_all
end end
def remove_documents_by_project_id(record_id)
client.delete_by_query({
index: Project.__elasticsearch__.index_name,
body: {
query: {
term: { "project_id" => record_id }
}
}
})
end
def remove_children_documents(parent_type, parent_record_id, parent_es_id) def remove_children_documents(parent_type, parent_record_id, parent_es_id)
client.delete_by_query({ client.delete_by_query({
index: Project.__elasticsearch__.index_name, index: Project.__elasticsearch__.index_name,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment