From 5efcd53322d610a713f18e42a2678818391205eb Mon Sep 17 00:00:00 2001 From: Kaustav Banerjee Date: Mon, 2 Sep 2024 17:51:19 +0530 Subject: [PATCH] chore: rename flag --- cms/envs/common.py | 4 ++-- xmodule/vertical_block.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cms/envs/common.py b/cms/envs/common.py index bd6fb2062a62..ca60be88a8c4 100644 --- a/cms/envs/common.py +++ b/cms/envs/common.py @@ -592,13 +592,13 @@ # .. toggle_creation_date: 2024-04-10 'BADGES_ENABLED': False, - # .. toggle_name: FEATURES['UNIT_DISCUSSION_SIDEBAR_ENABLED_BY_DEFAULT'] + # .. toggle_name: FEATURES['IN_CONTEXT_DISCUSSION_ENABLED_DEFAULT'] # .. toggle_implementation: DjangoSetting # .. toggle_default: True # .. toggle_description: Set to False to not enable discussion sidebar by default for new units. # .. toggle_use_cases: open_edx # .. toggle_creation_date: 2024-08-31 - 'UNIT_DISCUSSION_SIDEBAR_ENABLED_BY_DEFAULT': True, + 'IN_CONTEXT_DISCUSSION_ENABLED_DEFAULT': True, # .. toggle_name: FEATURES['ENABLE_LEGACY_MD5_HASH_FOR_ANONYMOUS_USER_ID'] # .. toggle_implementation: DjangoSetting diff --git a/xmodule/vertical_block.py b/xmodule/vertical_block.py index 85ee0b5f7574..b03aa5a42dfb 100644 --- a/xmodule/vertical_block.py +++ b/xmodule/vertical_block.py @@ -44,7 +44,7 @@ class VerticalFields: discussion_enabled = Boolean( display_name=_("Enable in-context discussions for the Unit"), help=_("Add discussion for the Unit."), - default=settings.FEATURES.get('UNIT_DISCUSSION_SIDEBAR_ENABLED_BY_DEFAULT', True), + default=settings.FEATURES.get('IN_CONTEXT_DISCUSSION_ENABLED_DEFAULT', True), scope=Scope.settings, )