From 73226f527bc8351e45098b4caeeed2edfd112714 Mon Sep 17 00:00:00 2001 From: Ahtisham Shahid Date: Tue, 11 May 2021 15:22:06 +0500 Subject: [PATCH] refactor: updated feature names as per convention --- openedx/core/djangoapps/discussions/models.py | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/openedx/core/djangoapps/discussions/models.py b/openedx/core/djangoapps/discussions/models.py index 13578ee1e4..10e303a027 100644 --- a/openedx/core/djangoapps/discussions/models.py +++ b/openedx/core/djangoapps/discussions/models.py @@ -29,31 +29,31 @@ class Features(Enum): """ Features to be used/mapped in discussion providers """ - ADVANCED_IN_CONTEXT_DISCUSSION = 'advanced_in_context_discussion' - ANONYMOUS_POSTING = 'anonymous_posting' - AUTOMATIC_LEARNER_ENROLLMENT = 'automatic_learner_enrollment' - BLACKOUT_DISCUSSION_DATES = 'blackout_discussion_dates' - COMMUNITY_TA_SUPPORT = 'community_ta_support' - COURSE_COHORT_SUPPORT = 'course_cohort_support' - DIRECT_MESSAGES_FROM_INSTRUCTORS = 'direct_messages_from_instructors' + ADVANCED_IN_CONTEXT_DISCUSSION = 'advanced-in-context-discussion' + ANONYMOUS_POSTING = 'anonymous-posting' + AUTOMATIC_LEARNER_ENROLLMENT = 'automatic-learner-enrollment' + BLACKOUT_DISCUSSION_DATES = 'blackout-discussion-dates' + COMMUNITY_TA_SUPPORT = 'community-ta-support' + COURSE_COHORT_SUPPORT = 'course-cohort-support' + DIRECT_MESSAGES_FROM_INSTRUCTORS = 'direct-messages-from-instructors' DISCUSSION_PAGE = 'discussion-page' - DISCUSSION_CONTENT_PROMPTS = 'discussion_content_prompts' - EMAIL_NOTIFICATIONS = 'email_notifications' + DISCUSSION_CONTENT_PROMPTS = 'discussion-content-prompts' + EMAIL_NOTIFICATIONS = 'email-notifications' EMBEDDED_COURSE_SECTIONS = 'embedded-course-sections' - GRADED_DISCUSSIONS = 'graded_discussions' - IN_PLATFORM_NOTIFICATIONS = 'in_platform_notifications' - INTERNATIONALIZATION_SUPPORT = 'internationalization_support' + GRADED_DISCUSSIONS = 'graded-discussions' + IN_PLATFORM_NOTIFICATIONS = 'in-platform-notifications' + INTERNATIONALIZATION_SUPPORT = 'internationalization-support' LTI = 'lti' - LTI_ADVANCED_SHARING_MODE = 'lti_advanced_sharing_mode' - LTI_BASIC_CONFIGURATION = 'lti_basic_configuration' - PRIMARY_DISCUSSION_APP_EXPERIENCE = 'primary_discussion_app_experience' - QUESTION_DISCUSSION_SUPPORT = 'question_discussion_support' - REPORT_FLAG_CONTENT_TO_MODERATORS = 'report/flag_content_to_moderators' - RESEARCH_DATA_EVENTS = 'research_data_events' - SIMPLIFIED_IN_CONTEXT_DISCUSSION = 'simplified_in_context_discussion' - USER_MENTIONS = 'user_mentions' - WCAG_2_1 = 'wcag_2.1' - WCAG_2_0_SUPPORT = 'wcag_2.0_support' + LTI_ADVANCED_SHARING_MODE = 'lti-advanced-sharing-mode' + LTI_BASIC_CONFIGURATION = 'lti-basic-configuration' + PRIMARY_DISCUSSION_APP_EXPERIENCE = 'primary-discussion-app-experience' + QUESTION_DISCUSSION_SUPPORT = 'question-discussion-support' + REPORT_FLAG_CONTENT_TO_MODERATORS = 'report/flag-content-to-moderators' + RESEARCH_DATA_EVENTS = 'research-data-events' + SIMPLIFIED_IN_CONTEXT_DISCUSSION = 'simplified-in-context-discussion' + USER_MENTIONS = 'user-mentions' + WCAG_2_1 = 'wcag-2.1' + WCAG_2_0_SUPPORT = 'wcag-2.0-support' PROVIDER_FEATURE_MAP = { 'legacy': [