diff --git a/cms/djangoapps/models/settings/course_metadata.py b/cms/djangoapps/models/settings/course_metadata.py index e9475f1a904cdcd54ed62beb48f6dce044582d2c..32f9daa6da24e4447c4e74b75091b31243e9a933 100644 --- a/cms/djangoapps/models/settings/course_metadata.py +++ b/cms/djangoapps/models/settings/course_metadata.py @@ -98,6 +98,11 @@ class CourseMetadata(object): filtered_list.append('enable_ccx') filtered_list.append('ccx_connector') + # Do not show "Issue Open Badges" in Studio Advanced Settings + # if the feature is disabled. + if not settings.FEATURES.get('ENABLE_OPENBADGES'): + filtered_list.append('issue_badges') + # If the XBlockStudioConfiguration table is not being used, there is no need to # display the "Allow Unsupported XBlocks" setting. if not XBlockStudioConfigurationFlag.is_enabled(): diff --git a/cms/envs/bok_choy.py b/cms/envs/bok_choy.py index 9c69e46020e8c0e5d670af6f58ed40d1ecbfcf49..1976bc6a85b0553f57f144d80f1551f0e1d8d0a0 100644 --- a/cms/envs/bok_choy.py +++ b/cms/envs/bok_choy.py @@ -98,6 +98,9 @@ FEATURES['ENABLE_VIDEO_BUMPER'] = True # Enable video bumper in Studio settings FEATURES['ENABLE_ENROLLMENT_TRACK_USER_PARTITION'] = True +# Enable support for OpenBadges accomplishments +FEATURES['ENABLE_OPENBADGES'] = True + # Enable partner support link in Studio footer PARTNER_SUPPORT_EMAIL = 'partner-support@example.com' diff --git a/cms/envs/common.py b/cms/envs/common.py index 30a341e09f914eca4b20127713c14b435ce2ae09..f73c630d6dd761b8c0f05ae068011aaec26f75d6 100644 --- a/cms/envs/common.py +++ b/cms/envs/common.py @@ -218,6 +218,9 @@ FEATURES = { # Show video bumper in Studio 'ENABLE_VIDEO_BUMPER': False, + # Show issue open badges in Studio + 'ENABLE_OPENBADGES': False, + # How many seconds to show the bumper again, default is 7 days: 'SHOW_BUMPER_PERIODICITY': 7 * 24 * 3600,