fix: update proctored exam settings URL

The proctored exam settings link now directs to a new modal view, rather
than the old exam settings page.
This commit is contained in:
Bianca Severino
2021-08-13 16:38:03 -04:00
parent 49aaa8621d
commit 1255bd8535
3 changed files with 36 additions and 4 deletions

View File

@@ -3,5 +3,27 @@ Toggles for course apps.
"""
from edx_toggles.toggles import LegacyWaffleSwitchNamespace
from openedx.core.djangoapps.waffle_utils import CourseWaffleFlag
#: Namespace for use by course apps for creating availability toggles
COURSE_APPS_WAFFLE_NAMESPACE = LegacyWaffleSwitchNamespace("course_apps")
# .. toggle_name: course_apps.proctoring_settings_modal_view
# .. toggle_use_cases: temporary
# .. toggle_implementation: CourseWaffleFlag
# .. toggle_default: False
# .. toggle_description: When enabled, users will be directed to a new proctoring settings
# modal on the Pages and Resources view when accessing proctored exam settings.
# .. toggle_warnings: None
# .. toggle_creation_date: 2021-08-17
# .. toggle_target_removal_date: None
PROCTORING_SETTINGS_MODAL_VIEW = CourseWaffleFlag(
COURSE_APPS_WAFFLE_NAMESPACE, 'proctoring_settings_modal_view', module_name=__name__,
)
def proctoring_settings_modal_view_enabled(course_key):
"""
Returns a boolean if proctoring settings modal view is enabled for a course.
"""
return PROCTORING_SETTINGS_MODAL_VIEW.is_enabled(course_key)