Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Remove noop QA/test data loading steps on ingestion server (#2353)

Madison Swain-Bowden797261b08b0a
diff --git a/ingestion_server/ingestion_server/tasks.py b/ingestion_server/ingestion_server/tasks.py
index 3ec2cdfcf..7bde27da5 100644
--- a/ingestion_server/ingestion_server/tasks.py
+++ b/ingestion_server/ingestion_server/tasks.py
@@ -50,10 +50,6 @@ class TaskTypes(Enum):
DELETE_INDEX = auto()
"""delete the given index after it has been superseded by a new one"""
- LOAD_TEST_DATA = auto()
- """create indices in ES for QA tests; this is not intended to run in production but
- can be run without negative consequences"""
-
CREATE_AND_POPULATE_FILTERED_INDEX = auto()
"""create a filtered index based on existing alias index"""
diff --git a/ingestion_server/justfile b/ingestion_server/justfile
index a2d8829a0..4bb4531eb 100644
--- a/ingestion_server/justfile
+++ b/ingestion_server/justfile
@@ -69,10 +69,6 @@ _curl-post data host="localhost:50281":
-w "\n" \
'http://{{ host }}/task'
-# Load QA data into QA indices in Elasticsearch
-load-test-data model="image":
- just _curl-post '{"model": "{{ model }}", "action": "LOAD_TEST_DATA"}'
-
# Load sample data into temp table in API and new index in Elasticsearch
ingest-upstream model="image" suffix="init":
just _curl-post '{"model": "{{ model }}", "action": "INGEST_UPSTREAM", "index_suffix": "{{ suffix }}"}'
diff --git a/load_sample_data.sh b/load_sample_data.sh
index 07a157382..9f9673970 100755
--- a/load_sample_data.sh
+++ b/load_sample_data.sh
@@ -62,13 +62,6 @@ docker-compose exec -T "$DB_SERVICE_NAME" bash -c "psql <<-EOF
# Ingestion #
#############
-# Load search quality assurance data.
-just ingestion_server/load-test-data "audio"
-sleep 2
-
-just ingestion_server/load-test-data "image"
-sleep 2
-
# Ingest and index the data
just ingestion_server/ingest-upstream "audio" "init"
just docker/es/wait-for-index "audio-init"