diff --git a/lms/djangoapps/courseware/toggles.py b/lms/djangoapps/courseware/toggles.py index 48f9bee91e..270eefb249 100644 --- a/lms/djangoapps/courseware/toggles.py +++ b/lms/djangoapps/courseware/toggles.py @@ -140,18 +140,6 @@ COURSEWARE_MICROFRONTEND_PROCTORED_EXAMS = CourseWaffleFlag( WAFFLE_FLAG_NAMESPACE, 'mfe_proctored_exams', __name__ ) -# .. toggle_name: courseware.verified_name -# .. toggle_implementation: CourseWaffleFlag -# .. toggle_default: False -# .. toggle_description: Course waffle flag for verified name functionality (see https://github.com/edx/edx-name-affirmation) -# .. toggle_use_cases: temporary -# .. toggle_creation_date: 2021-7-14 -# .. toggle_target_removal_date: None -# .. toggle_warnings: None -COURSEWARE_VERIFIED_NAME_FLAG = CourseWaffleFlag( - WAFFLE_FLAG_NAMESPACE, 'verified_name', __name__ -) - def mfe_special_exams_is_active(course_key: CourseKey) -> bool: """ @@ -308,10 +296,6 @@ def streak_celebration_is_active(course_key): ) -def is_verified_name_enabled_for_course(course_key): - return COURSEWARE_VERIFIED_NAME_FLAG.is_enabled(course_key) - - # .. toggle_name: COURSES_INVITE_ONLY # .. toggle_implementation: SettingToggle # .. toggle_type: feature_flag diff --git a/lms/djangoapps/courseware/views/index.py b/lms/djangoapps/courseware/views/index.py index bdd14da23d..fef075d8f3 100644 --- a/lms/djangoapps/courseware/views/index.py +++ b/lms/djangoapps/courseware/views/index.py @@ -66,8 +66,7 @@ from ..module_render import get_module_for_descriptor, toc_for_course from ..permissions import MASQUERADE_AS_STUDENT from ..toggles import ( courseware_legacy_is_visible, - courseware_mfe_is_advertised, - is_verified_name_enabled_for_course + courseware_mfe_is_advertised ) from .views import CourseTabView @@ -445,8 +444,7 @@ class CoursewareIndex(View): 'section_title': None, 'sequence_title': None, 'disable_accordion': not DISABLE_COURSE_OUTLINE_PAGE_FLAG.is_enabled(self.course.id), - 'show_search': show_search, - 'is_verified_name_enabled': is_verified_name_enabled_for_course(self.course.id), + 'show_search': show_search } courseware_context.update( get_experiment_user_metadata_context( diff --git a/lms/templates/courseware/courseware.html b/lms/templates/courseware/courseware.html index c1525f2063..9700101c93 100644 --- a/lms/templates/courseware/courseware.html +++ b/lms/templates/courseware/courseware.html @@ -246,8 +246,7 @@ ${HTML(fragment.foot_html())} -
+
% if getattr(course, 'entrance_exam_enabled') and \ getattr(course, 'entrance_exam_minimum_score_pct') and \ entrance_exam_current_score is not UNDEFINED: