diff --git a/enterprise_catalog/apps/academy/tests/__init__.py b/enterprise_catalog/apps/academy/tests/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/enterprise_catalog/apps/academy/tests/factories.py b/enterprise_catalog/apps/academy/tests/factories.py deleted file mode 100644 index cf710fd1f..000000000 --- a/enterprise_catalog/apps/academy/tests/factories.py +++ /dev/null @@ -1,38 +0,0 @@ -from uuid import uuid4 - -import factory -from factory.fuzzy import FuzzyText - -from enterprise_catalog.apps.academy.models import Academy, Tag -from enterprise_catalog.apps.catalog.tests.factories import ( - EnterpriseCatalogFactory, -) - - -class TagFactory(factory.django.DjangoModelFactory): - """ - Test factory for the `Tag` model - """ - class Meta: - model = Tag - - -class AcademyFactory(factory.django.DjangoModelFactory): - """ - Test factory for the `Academy` model - """ - class Meta: - model = Academy - - uuid = factory.LazyFunction(uuid4) - title = FuzzyText(length=32) - short_description = FuzzyText(length=32) - long_description = FuzzyText(length=255) - enterprise_catalogs = factory.RelatedFactoryList( - EnterpriseCatalogFactory, - size=4, - ) - tags = factory.RelatedFactoryList( - TagFactory, - size=4, - ) diff --git a/enterprise_catalog/apps/api/tasks.py b/enterprise_catalog/apps/api/tasks.py index 398a5e5a2..16ca4c6a4 100644 --- a/enterprise_catalog/apps/api/tasks.py +++ b/enterprise_catalog/apps/api/tasks.py @@ -632,7 +632,6 @@ def add_metadata_to_algolia_objects( catalog_uuids, customer_uuids, catalog_queries, - academy_uuids, ): """ Convert ContentMetadata objects into Algolia products and accumulate results into `algolia_products_by_object_id`. @@ -677,16 +676,6 @@ def add_metadata_to_algolia_objects( ) _add_in_algolia_products_by_object_id(algolia_products_by_object_id, batched_metadata) - # academy uuids - academy_uuids = sorted(list(academy_uuids)) - batched_metadata = _batched_metadata( - json_metadata, - academy_uuids, - 'academy_uuids', - '{}-academy-uuids-{}', - ) - _add_in_algolia_products_by_object_id(algolia_products_by_object_id, batched_metadata) - # enterprise catalog queries (tuples of (query uuid, query title)), note: account for None being present # within the list queries = sorted(list(catalog_queries)) @@ -748,11 +737,9 @@ def _get_algolia_products_for_batch( catalog_uuids_by_key = defaultdict(set) customer_uuids_by_key = defaultdict(set) catalog_queries_by_key = defaultdict(set) - academy_uuids_by_key = defaultdict(set) catalog_query_uuid_by_catalog_uuid = defaultdict(set) customer_uuid_by_catalog_uuid = defaultdict(set) - academy_uuids_by_catalog_uuid = defaultdict(set) # Create a shared convenience queryset to prefetch catalogs for all metadata lookups below. all_catalog_queries = CatalogQuery.objects.prefetch_related('enterprise_catalogs') @@ -819,10 +806,6 @@ def _get_algolia_products_for_batch( # Cache UUIDs related to each catalog. catalog_query_uuid_by_catalog_uuid[str(catalog.uuid)] = (str(catalog_query.uuid), catalog_query.title) customer_uuid_by_catalog_uuid[str(catalog.uuid)] = str(catalog.enterprise_uuid) - associated_academies = catalog.academies.all() - for academy in associated_academies: - academy_uuids_by_key[content_key].add(str(academy.uuid)) - academy_uuids_by_catalog_uuid[str(catalog.uuid)].add(str(academy.uuid)) # Second pass. This time the goal is to capture indirect relationships on programs: # * For each program: @@ -850,10 +833,6 @@ def _get_algolia_products_for_batch( customer_uuids_by_key[program_content_key].update( customer_uuid_by_catalog_uuid[catalog_uuid] for catalog_uuid in common_catalogs ) - for catalog_uuid in common_catalogs: - academy_uuids_by_key[program_content_key].update( - academy_uuids_by_catalog_uuid[catalog_uuid] - ) # Third pass. This time the goal is to capture indirect relationships on pathways: # * For each pathway: @@ -868,7 +847,6 @@ def _get_algolia_products_for_batch( catalog_queries_by_key[pathway_content_key].update(catalog_queries_by_key[metadata.content_key]) catalog_uuids_by_key[pathway_content_key].update(catalog_uuids_by_key[metadata.content_key]) customer_uuids_by_key[pathway_content_key].update(customer_uuids_by_key[metadata.content_key]) - academy_uuids_by_key[pathway_content_key].update(academy_uuids_by_key[metadata.content_key]) # Extra disabled logic to additionally absorb UUIDs from courses linked to this pathway indirectly via a # program (chain of association is course -> program -> pathway). This doesn't work because @@ -903,7 +881,6 @@ def _get_algolia_products_for_batch( catalog_uuids_by_key[metadata.content_key], customer_uuids_by_key[metadata.content_key], catalog_queries_by_key[metadata.content_key], - academy_uuids_by_key[metadata.content_key], ) num_content_metadata_indexed += 1 diff --git a/enterprise_catalog/apps/api/tests/test_tasks.py b/enterprise_catalog/apps/api/tests/test_tasks.py index 8000da1d3..e34ffd166 100644 --- a/enterprise_catalog/apps/api/tests/test_tasks.py +++ b/enterprise_catalog/apps/api/tests/test_tasks.py @@ -12,7 +12,6 @@ from django.test import TestCase from django_celery_results.models import TaskResult -from enterprise_catalog.apps.academy.tests.factories import AcademyFactory from enterprise_catalog.apps.api import tasks from enterprise_catalog.apps.api.constants import CourseMode from enterprise_catalog.apps.api_client.discovery import CatalogQueryMetadata @@ -662,7 +661,6 @@ class IndexEnterpriseCatalogCoursesInAlgoliaTaskTests(TestCase): ALGOLIA_FIELDS = [ 'key', 'objectID', - 'academy_uuids', 'enterprise_customer_uuids', 'enterprise_catalog_uuids', 'enterprise_catalog_query_uuids', @@ -673,10 +671,8 @@ def setUp(self): super().setUp() # Set up a catalog, query, and metadata for a course and course associated program - self.academy = AcademyFactory() self.enterprise_catalog_query = CatalogQueryFactory(uuid=SORTED_QUERY_UUID_LIST[0]) self.enterprise_catalog_courses = EnterpriseCatalogFactory(catalog_query=self.enterprise_catalog_query) - self.enterprise_catalog_courses.academies.add(self.academy) self.course_metadata_published = ContentMetadataFactory(content_type=COURSE, content_key='course-1') self.course_metadata_published.catalog_queries.set([self.enterprise_catalog_query]) self.course_metadata_unpublished = ContentMetadataFactory(content_type=COURSE, content_key='course-2') @@ -715,7 +711,6 @@ def _set_up_factory_data_for_algolia(self): str(self.enterprise_catalog_courses.enterprise_uuid), str(self.enterprise_catalog_course_runs.enterprise_uuid), ]) - expected_academy_uuids = [str(self.academy.uuid)] expected_queries = sorted([( str(self.enterprise_catalog_courses.catalog_query.uuid), self.enterprise_catalog_courses.catalog_query.title, @@ -728,7 +723,6 @@ def _set_up_factory_data_for_algolia(self): return { 'catalog_uuids': expected_catalog_uuids, 'customer_uuids': expected_customer_uuids, - 'academy_uuids': expected_academy_uuids, 'query_uuids': query_uuids, 'query_titles': query_titles, 'course_metadata_published': self.course_metadata_published, @@ -798,7 +792,7 @@ def mock_replace_all_objects(products_iterable): tasks.index_enterprise_catalog_in_algolia_task() # pylint: disable=no-value-for-parameter products_found_log_records = [record for record in info_logs.output if ' products found.' in record] - assert ' 16 products found.' in products_found_log_records[0] + assert ' 15 products found.' in products_found_log_records[0] # create expected data to be added/updated in the Algolia index. expected_program_1_objects_to_index = [] @@ -890,7 +884,7 @@ def mock_replace_all_objects(products_iterable): tasks.index_enterprise_catalog_in_algolia_task() # pylint: disable=no-value-for-parameter products_found_log_records = [record for record in info_logs.output if ' products found.' in record] - assert ' 13 products found.' in products_found_log_records[0] + assert ' 12 products found.' in products_found_log_records[0] # assert the program was not indexed. program_uuid = program_1.json_metadata.get('uuid') @@ -988,7 +982,7 @@ def mock_replace_all_objects(products_iterable): tasks.index_enterprise_catalog_in_algolia_task() # pylint: disable=no-value-for-parameter products_found_log_records = [record for record in info_logs.output if ' products found.' in record] - assert ' 8 products found.' in products_found_log_records[0] + assert ' 6 products found.' in products_found_log_records[0] # create expected data to be added/updated in the Algolia index. expected_course_1_objects_to_index = [] @@ -1003,11 +997,6 @@ def mock_replace_all_objects(products_iterable): 'objectID': f'course-{published_course_uuid}-customer-uuids-0', 'enterprise_customer_uuids': algolia_data['customer_uuids'], }) - expected_course_1_objects_to_index.append({ - 'key': algolia_data['course_metadata_published'].content_key, - 'objectID': f'course-{published_course_uuid}-academy-uuids-0', - 'academy_uuids': algolia_data['academy_uuids'], - }) expected_course_1_objects_to_index.append({ 'key': algolia_data['course_metadata_published'].content_key, 'objectID': f'course-{published_course_uuid}-catalog-query-uuids-0', @@ -1025,10 +1014,6 @@ def mock_replace_all_objects(products_iterable): 'objectID': f'program-{program_uuid}-customer-uuids-0', 'enterprise_customer_uuids': algolia_data['customer_uuids'], }) - expected_program_1_objects_to_index.append({ - 'objectID': f'program-{program_uuid}-academy-uuids-0', - 'academy_uuids': algolia_data['academy_uuids'], - }) expected_program_1_objects_to_index.append({ 'objectID': f'program-{program_uuid}-catalog-query-uuids-0', 'enterprise_catalog_query_uuids': sorted(algolia_data['query_uuids']), @@ -1093,7 +1078,7 @@ def mock_replace_all_objects(products_iterable): tasks.index_enterprise_catalog_in_algolia_task() # pylint: disable=no-value-for-parameter products_found_log_records = [record for record in info_logs.output if ' products found.' in record] - assert ' 8 products found.' in products_found_log_records[0] + assert ' 6 products found.' in products_found_log_records[0] # create expected data to be added/updated in the Algolia index. expected_course_1_objects_to_index = [] @@ -1108,11 +1093,6 @@ def mock_replace_all_objects(products_iterable): 'objectID': f'course-{published_course_uuid}-customer-uuids-0', 'enterprise_customer_uuids': algolia_data['customer_uuids'], }) - expected_course_1_objects_to_index.append({ - 'key': algolia_data['course_metadata_published'].content_key, - 'objectID': f'course-{published_course_uuid}-academy-uuids-0', - 'academy_uuids': algolia_data['academy_uuids'], - }) expected_course_1_objects_to_index.append({ 'key': algolia_data['course_metadata_published'].content_key, 'objectID': f'course-{published_course_uuid}-catalog-query-uuids-0', @@ -1130,10 +1110,6 @@ def mock_replace_all_objects(products_iterable): 'objectID': f'program-{program_uuid}-customer-uuids-0', 'enterprise_customer_uuids': [str(self.enterprise_catalog_courses.enterprise_uuid)], }) - expected_program_1_objects_to_index.append({ - 'objectID': f'program-{program_uuid}-academy-uuids-0', - 'academy_uuids': [str(self.enterprise_catalog_courses.academies.first().uuid)], - }) expected_program_1_objects_to_index.append({ 'objectID': f'program-{program_uuid}-catalog-query-uuids-0', 'enterprise_catalog_query_uuids': [str(self.enterprise_catalog_courses.catalog_query.uuid)], @@ -1186,7 +1162,7 @@ def mock_replace_all_objects(products_iterable): tasks.index_enterprise_catalog_in_algolia_task() # pylint: disable=no-value-for-parameter products_found_log_records = [record for record in info_logs.output if ' products found.' in record] - assert ' 8 products found.' in products_found_log_records[0] + assert ' 6 products found.' in products_found_log_records[0] # create expected data to be added/updated in the Algolia index. expected_course_1_objects_to_index = [] @@ -1201,11 +1177,6 @@ def mock_replace_all_objects(products_iterable): 'objectID': f'course-{published_course_uuid}-customer-uuids-0', 'enterprise_customer_uuids': algolia_data['customer_uuids'], }) - expected_course_1_objects_to_index.append({ - 'key': algolia_data['course_metadata_published'].content_key, - 'objectID': f'course-{published_course_uuid}-academy-uuids-0', - 'academy_uuids': algolia_data['academy_uuids'], - }) expected_course_1_objects_to_index.append({ 'key': algolia_data['course_metadata_published'].content_key, 'objectID': f'course-{published_course_uuid}-catalog-query-uuids-0', @@ -1225,11 +1196,6 @@ def mock_replace_all_objects(products_iterable): 'objectID': f'learnerpathway-{pathway_uuid}-customer-uuids-0', 'enterprise_customer_uuids': algolia_data['customer_uuids'], }) - expected_pathway_1_objects_to_index.append({ - 'key': pathway_1.content_key, - 'objectID': f'learnerpathway-{pathway_uuid}-academy-uuids-0', - 'academy_uuids': algolia_data['academy_uuids'], - }) expected_pathway_1_objects_to_index.append({ 'key': pathway_1.content_key, 'objectID': f'learnerpathway-{pathway_uuid}-catalog-query-uuids-0', @@ -1287,7 +1253,7 @@ def mock_replace_all_objects(products_iterable): tasks.index_enterprise_catalog_in_algolia_task() # pylint: disable=no-value-for-parameter products_found_log_records = [record for record in info_logs.output if ' products found.' in record] - assert ' 8 products found.' in products_found_log_records[0] + assert ' 6 products found.' in products_found_log_records[0] # create expected data to be added/updated in the Algolia index. expected_course_1_objects_to_index = [] @@ -1302,11 +1268,6 @@ def mock_replace_all_objects(products_iterable): 'objectID': f'course-{published_course_uuid}-customer-uuids-0', 'enterprise_customer_uuids': algolia_data['customer_uuids'], }) - expected_course_1_objects_to_index.append({ - 'key': algolia_data['course_metadata_published'].content_key, - 'objectID': f'course-{published_course_uuid}-academy-uuids-0', - 'academy_uuids': algolia_data['academy_uuids'], - }) expected_course_1_objects_to_index.append({ 'key': algolia_data['course_metadata_published'].content_key, 'objectID': f'course-{published_course_uuid}-catalog-query-uuids-0', @@ -1326,11 +1287,6 @@ def mock_replace_all_objects(products_iterable): 'objectID': f'learnerpathway-{pathway_uuid}-customer-uuids-0', 'enterprise_customer_uuids': [str(self.enterprise_catalog_courses.enterprise_uuid)], }) - expected_pathway_1_objects_to_index.append({ - 'key': pathway_1.content_key, - 'objectID': f'learnerpathway-{pathway_uuid}-academy-uuids-0', - 'academy_uuids': [str(self.enterprise_catalog_courses.academies.first().uuid)], - }) expected_pathway_1_objects_to_index.append({ 'key': pathway_1.content_key, 'objectID': f'learnerpathway-{pathway_uuid}-catalog-query-uuids-0', @@ -1398,7 +1354,7 @@ def mock_replace_all_objects(products_iterable): tasks.index_enterprise_catalog_in_algolia_task() # pylint: disable=no-value-for-parameter products_found_log_records = [record for record in info_logs.output if ' products found.' in record] - assert ' 12 products found.' in products_found_log_records[0] + assert ' 9 products found.' in products_found_log_records[0] # create expected data to be added/updated in the Algolia index. expected_course_1_objects_to_index = [] @@ -1413,11 +1369,6 @@ def mock_replace_all_objects(products_iterable): 'objectID': f'course-{published_course_uuid}-customer-uuids-0', 'enterprise_customer_uuids': algolia_data['customer_uuids'], }) - expected_course_1_objects_to_index.append({ - 'key': algolia_data['course_metadata_published'].content_key, - 'objectID': f'course-{published_course_uuid}-academy-uuids-0', - 'academy_uuids': algolia_data['academy_uuids'], - }) expected_course_1_objects_to_index.append({ 'key': algolia_data['course_metadata_published'].content_key, 'objectID': f'course-{published_course_uuid}-catalog-query-uuids-0', @@ -1435,10 +1386,6 @@ def mock_replace_all_objects(products_iterable): 'objectID': f'program-{program_uuid}-customer-uuids-0', 'enterprise_customer_uuids': [str(self.enterprise_catalog_courses.enterprise_uuid)], }) - expected_program_1_objects_to_index.append({ - 'objectID': f'program-{program_uuid}-academy-uuids-0', - 'academy_uuids': [str(self.enterprise_catalog_courses.academies.first().uuid)], - }) expected_program_1_objects_to_index.append({ 'objectID': f'program-{program_uuid}-catalog-query-uuids-0', 'enterprise_catalog_query_uuids': [str(self.enterprise_catalog_courses.catalog_query.uuid)], @@ -1457,11 +1404,6 @@ def mock_replace_all_objects(products_iterable): 'objectID': f'learnerpathway-{pathway_uuid}-customer-uuids-0', 'enterprise_customer_uuids': [str(self.enterprise_catalog_courses.enterprise_uuid)], }) - expected_pathway_1_objects_to_index.append({ - 'key': pathway_1.content_key, - 'objectID': f'learnerpathway-{pathway_uuid}-academy-uuids-0', - 'academy_uuids': [str(self.enterprise_catalog_courses.academies.first().uuid)], - }) expected_pathway_1_objects_to_index.append({ 'key': pathway_1.content_key, 'objectID': f'learnerpathway-{pathway_uuid}-catalog-query-uuids-0', @@ -1565,7 +1507,7 @@ def mock_replace_all_objects(products_iterable): tasks.index_enterprise_catalog_in_algolia_task() # pylint: disable=no-value-for-parameter products_found_log_records = [record for record in info_logs.output if ' products found.' in record] - assert ' 20 products found.' in products_found_log_records[0] + assert ' 15 products found.' in products_found_log_records[0] # create expected data to be added/updated in the Algolia index. expected_algolia_objects_to_index = [] @@ -1580,11 +1522,6 @@ def mock_replace_all_objects(products_iterable): 'objectID': f'course-{published_course_uuid}-customer-uuids-0', 'enterprise_customer_uuids': algolia_data['customer_uuids'], }) - expected_algolia_objects_to_index.append({ - 'key': algolia_data['course_metadata_published'].content_key, - 'objectID': f'course-{published_course_uuid}-academy-uuids-0', - 'academy_uuids': algolia_data['academy_uuids'], - }) expected_algolia_objects_to_index.append({ 'key': algolia_data['course_metadata_published'].content_key, 'objectID': f'course-{published_course_uuid}-catalog-query-uuids-0', @@ -1602,10 +1539,6 @@ def mock_replace_all_objects(products_iterable): 'objectID': f'program-{program_uuid}-customer-uuids-0', 'enterprise_customer_uuids': [str(self.enterprise_catalog_courses.enterprise_uuid)], }) - expected_algolia_program_objects3.append({ - 'objectID': f'program-{program_uuid}-academy-uuids-0', - 'academy_uuids': [str(self.enterprise_catalog_courses.academies.first().uuid)], - }) expected_algolia_program_objects3.append({ 'objectID': f'program-{program_uuid}-catalog-query-uuids-0', 'enterprise_catalog_query_uuids': [str(self.enterprise_catalog_courses.catalog_query.uuid)], @@ -1624,11 +1557,6 @@ def mock_replace_all_objects(products_iterable): 'objectID': f'learnerpathway-{pathway_uuid}-customer-uuids-0', 'enterprise_customer_uuids': algolia_data['customer_uuids'], }) - expected_algolia_pathway_objects.append({ - 'key': pathway_for_course.content_key, - 'objectID': f'learnerpathway-{pathway_uuid}-academy-uuids-0', - 'academy_uuids': algolia_data['academy_uuids'], - }) expected_algolia_pathway_objects.append({ 'key': pathway_for_course.content_key, 'objectID': f'learnerpathway-{pathway_uuid}-catalog-query-uuids-0', @@ -1648,11 +1576,6 @@ def mock_replace_all_objects(products_iterable): 'objectID': f'learnerpathway-{pathway_uuid}-customer-uuids-0', 'enterprise_customer_uuids': [str(self.enterprise_catalog_courses.enterprise_uuid)], }) - expected_algolia_pathway_objects2.append({ - 'key': pathway_for_courserun.content_key, - 'objectID': f'learnerpathway-{pathway_uuid}-academy-uuids-0', - 'academy_uuids': [str(self.enterprise_catalog_courses.academies.first().uuid)], - }) expected_algolia_pathway_objects2.append({ 'key': pathway_for_courserun.content_key, 'objectID': f'learnerpathway-{pathway_uuid}-catalog-query-uuids-0', @@ -1673,11 +1596,6 @@ def mock_replace_all_objects(products_iterable): 'objectID': f'learnerpathway-{pathway_uuid}-customer-uuids-0', 'enterprise_customer_uuids': algolia_data['customer_uuids'], }) - expected_algolia_pathway_objects3.append({ - 'key': pathway_key, - 'objectID': f'learnerpathway-{pathway_uuid}-academy-uuids-0', - 'academy_uuids': algolia_data['academy_uuids'], - }) expected_algolia_pathway_objects3.append({ 'key': pathway_key, 'objectID': f'learnerpathway-{pathway_uuid}-catalog-query-uuids-0', @@ -1722,7 +1640,7 @@ def mock_replace_all_objects(products_iterable): with self.assertLogs(level='INFO') as info_logs: tasks.index_enterprise_catalog_in_algolia_task() # pylint: disable=no-value-for-parameter - assert ' 7 products found.' in info_logs.output[-1] + assert ' 6 products found.' in info_logs.output[-1] # create expected data to be added/updated in the Algolia index. expected_algolia_objects_to_index = [] @@ -1747,11 +1665,6 @@ def mock_replace_all_objects(products_iterable): 'objectID': f'course-{published_course_uuid}-customer-uuids-1', 'enterprise_customer_uuids': [algolia_data['customer_uuids'][1]], }) - expected_algolia_objects_to_index.append({ - 'key': algolia_data['course_metadata_published'].content_key, - 'objectID': f'course-{published_course_uuid}-academy-uuids-0', - 'academy_uuids': [algolia_data['academy_uuids'][0]], - }) expected_algolia_objects_to_index.append({ 'key': algolia_data['course_metadata_published'].content_key, 'objectID': f'course-{published_course_uuid}-catalog-query-uuids-0', @@ -1793,7 +1706,7 @@ def mock_replace_all_objects(products_iterable): with self.assertLogs(level='INFO') as info_logs: tasks.index_enterprise_catalog_in_algolia_task() # pylint: disable=no-value-for-parameter - assert ' 7 products found.' in info_logs.output[-1] + assert ' 6 products found.' in info_logs.output[-1] # create expected data to be added/updated in the Algolia index. expected_algolia_objects_to_index = [] @@ -1818,11 +1731,6 @@ def mock_replace_all_objects(products_iterable): 'objectID': f'course-{published_course_uuid}-customer-uuids-1', 'enterprise_customer_uuids': [algolia_data['customer_uuids'][1]], }) - expected_algolia_objects_to_index.append({ - 'key': algolia_data['course_metadata_published'].content_key, - 'objectID': f'course-{published_course_uuid}-academy-uuids-0', - 'academy_uuids': [algolia_data['academy_uuids'][0]], - }) expected_algolia_objects_to_index.append({ 'key': algolia_data['course_metadata_published'].content_key, 'objectID': f'course-{published_course_uuid}-catalog-query-uuids-0', @@ -1894,7 +1802,7 @@ def test_index_algolia_dry_run(self, mock_search_client): tasks.index_enterprise_catalog_in_algolia_task(force, dry_run) mock_search_client().replace_all_objects.assert_not_called() - assert '[ENTERPRISE_CATALOG_ALGOLIA_REINDEX] [DRY RUN] 7 products found.' in info_logs.output[-1] + assert '[ENTERPRISE_CATALOG_ALGOLIA_REINDEX] [DRY RUN] 6 products found.' in info_logs.output[-1] assert any( '[ENTERPRISE_CATALOG_ALGOLIA_REINDEX] [DRY RUN] skipping algolia_client.replace_all_objects().' in record for record in info_logs.output diff --git a/enterprise_catalog/apps/catalog/algolia_utils.py b/enterprise_catalog/apps/catalog/algolia_utils.py index 206aeb455..a548a5def 100644 --- a/enterprise_catalog/apps/catalog/algolia_utils.py +++ b/enterprise_catalog/apps/catalog/algolia_utils.py @@ -37,7 +37,6 @@ 'enterprise_catalog_uuids', 'enterprise_catalog_query_uuids', 'enterprise_customer_uuids', - 'academy_uuids', 'full_description', 'key', # for links to Course about pages from the Learner Portal search page 'uuid', @@ -104,7 +103,6 @@ 'enterprise_catalog_uuids', 'enterprise_catalog_query_uuids', 'enterprise_customer_uuids', - 'academy_uuids', 'language', 'level_type', 'program_type', @@ -128,7 +126,6 @@ 'unretrievableAttributes': [ 'enterprise_catalog_uuids', 'enterprise_customer_uuids', - 'academy_uuids', ], 'customRanking': [ 'asc(visible_via_association)',