From e5a5bcc78601e5cf01d594253dec3d3188f57cfc Mon Sep 17 00:00:00 2001 From: Alex Dusenbery Date: Tue, 3 Oct 2023 10:03:48 -0400 Subject: [PATCH] fix: remove temp logging from a closed issue. --- enterprise_catalog/apps/api/tasks.py | 6 ------ enterprise_catalog/apps/catalog/algolia_utils.py | 9 +-------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/enterprise_catalog/apps/api/tasks.py b/enterprise_catalog/apps/api/tasks.py index b6357c637..6ec8362ca 100644 --- a/enterprise_catalog/apps/api/tasks.py +++ b/enterprise_catalog/apps/api/tasks.py @@ -839,12 +839,6 @@ def _get_algolia_products_for_batch( ) num_content_metadata_indexed = 0 for metadata in content_metadata_to_index: - # TODO: remove when https://2u-internal.atlassian.net/browse/ENT-7458 is resolved - if 'GTx+MGT6203x' in content_key: - logger.info( - f'[ENT-7458] {content_key} will be added to Algolia index' - ) - # Build all the algolia products for this single metadata record and append them to # `algolia_products_by_object_id`. This function contains all the logic to create duplicate/segmented records # with non-overlapping UUID list fields to keep the product size below a fixed limit controlled by diff --git a/enterprise_catalog/apps/catalog/algolia_utils.py b/enterprise_catalog/apps/catalog/algolia_utils.py index c28eaf1fe..b35958606 100644 --- a/enterprise_catalog/apps/catalog/algolia_utils.py +++ b/enterprise_catalog/apps/catalog/algolia_utils.py @@ -187,16 +187,9 @@ def deadline_passed_checker(): (run_is_hidden_checker, 'advertised course run is hidden'), (no_owners_checker, 'no owners exist'), ): - # TODO: remove/simplify logging when https://2u-internal.atlassian.net/browse/ENT-7458 is resolved should_not_index = should_not_index_function() - if 'GTx+MGT6203x' in course_metadata.content_key: - logger.info( - f'[ENT-7458] {course_metadata.content_key} {log_message} ' - f'checker has should_not_index={should_not_index}' - ) - if should_not_index: - logger.info(f'[ENT-7458] Should not index {course_metadata.content_key}, {log_message}') + logger.info(f'Not indexing {course_metadata.content_key}, reason: {log_message}') return False return True