From 12011bf19120a6e05d1735acb33077cb41902f28 Mon Sep 17 00:00:00 2001 From: Mushtaq Ali Date: Tue, 10 Jul 2018 19:12:48 +0500 Subject: [PATCH] Change default content filter to include only courses - ENT-1070 --- lms/envs/aws.py | 6 ++++++ lms/envs/common.py | 1 + 2 files changed, 7 insertions(+) diff --git a/lms/envs/aws.py b/lms/envs/aws.py index 0e501ddb22..687ba4663a 100644 --- a/lms/envs/aws.py +++ b/lms/envs/aws.py @@ -984,6 +984,12 @@ ENTERPRISE_REPORTING_SECRET = AUTH_TOKENS.get( ENTERPRISE_REPORTING_SECRET ) +# A default dictionary to be used for filtering out enterprise customer catalog. +ENTERPRISE_CUSTOMER_CATALOG_DEFAULT_CONTENT_FILTER = ENV_TOKENS.get( + 'ENTERPRISE_CUSTOMER_CATALOG_DEFAULT_CONTENT_FILTER', + ENTERPRISE_CUSTOMER_CATALOG_DEFAULT_CONTENT_FILTER +) + ############## ENTERPRISE SERVICE API CLIENT CONFIGURATION ###################### # The LMS communicates with the Enterprise service via the EdxRestApiClient class # The below environmental settings are utilized by the LMS when interacting with diff --git a/lms/envs/common.py b/lms/envs/common.py index 58e83aac4d..7c9aacee30 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -3348,6 +3348,7 @@ ENTERPRISE_COURSE_ENROLLMENT_AUDIT_MODES = ['audit', 'honor'] ENTERPRISE_SUPPORT_URL = '' # The default value of this needs to be a 16 character string ENTERPRISE_REPORTING_SECRET = '0000000000000000' +ENTERPRISE_CUSTOMER_CATALOG_DEFAULT_CONTENT_FILTER = {} ############## ENTERPRISE SERVICE API CLIENT CONFIGURATION ###################### # The LMS communicates with the Enterprise service via the EdxRestApiClient class