From 33d4ae69dd86669cb85a05fc971eebc815742e8f Mon Sep 17 00:00:00 2001 From: jsa Date: Mon, 29 Jul 2013 18:13:12 -0400 Subject: [PATCH] add feature flag to enable/disable discussion home panel --- lms/envs/aws.py | 3 +++ lms/envs/common.py | 3 +++ lms/templates/discussion/_underscore_templates.html | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/lms/envs/aws.py b/lms/envs/aws.py index 5bc61a5203..298aca50b4 100644 --- a/lms/envs/aws.py +++ b/lms/envs/aws.py @@ -182,6 +182,9 @@ COURSES_WITH_UNSAFE_CODE = ENV_TOKENS.get("COURSES_WITH_UNSAFE_CODE", []) MITX_FEATURES['AUTOMATIC_AUTH_FOR_LOAD_TESTING'] = ENV_TOKENS.get('AUTOMATIC_AUTH_FOR_LOAD_TESTING') MITX_FEATURES['MAX_AUTO_AUTH_USERS'] = ENV_TOKENS.get('MAX_AUTO_AUTH_USERS') +# discussion home panel must be explicitly enabled +MITX_FEATURES['ENABLE_DISCUSSION_HOME_PANEL'] = ENV_TOKENS.get('ENABLE_DISCUSSION_HOME_PANEL', False) + ############################## SECURE AUTH ITEMS ############### # Secret things: passwords, access keys, etc. diff --git a/lms/envs/common.py b/lms/envs/common.py index a0cc96c49d..84941f700c 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -71,6 +71,9 @@ MITX_FEATURES = { 'ENABLE_TEXTBOOK': True, 'ENABLE_DISCUSSION_SERVICE': True, + # discussion home panel, which includes a subscription on/off setting for discussion digest emails. + # this glano longer needed once + 'ENABLE_DISCUSSION_HOME_PANEL': True, 'ENABLE_PSYCHOMETRICS': False, # real-time psychometrics (eg item response theory analysis in instructor dashboard) diff --git a/lms/templates/discussion/_underscore_templates.html b/lms/templates/discussion/_underscore_templates.html index cd0e94e646..f9aa9ea252 100644 --- a/lms/templates/discussion/_underscore_templates.html +++ b/lms/templates/discussion/_underscore_templates.html @@ -177,6 +177,8 @@ DISCUSSION HOME:

${course.display_name_with_default}

+ + % if settings.MITX_FEATURES.get('ENABLE_DISCUSSION_HOME_PANEL'): HOW TO USE EDX DISCUSSIONS @@ -218,5 +220,7 @@
+ % endif +