This is a first stage for removing the LegacyWaffle* classes. LegacyWaffleFlag usage replaced with WaffleFlag; LegacyWaffleSwitche usage replaced with WaffleSwitch; New CourseWaffleFlag added to the temporary module __future__ as FutureCourseWaffleFlag; Updated all the imports to use CourseWaffleFlag from the __future__ module; BREAKING CHANGE: A number of toggle related constants (e.g. ENABLE_ACCESSIBILITY_POLICY_PAGE) changed types. They were strings, and are now toggle instances (e.g. WaffleSwitch). Although the entire refactor should be self-contained in edx-platform, if any plugins or dependencies were directly using these constants, they will break. If this is the case, try to find a better publicized way of exposing those toggles.
18 lines
663 B
Python
18 lines
663 B
Python
"""
|
|
Feature toggles used for effort estimation.
|
|
"""
|
|
|
|
from openedx.core.djangoapps.waffle_utils.__future__ import FutureCourseWaffleFlag as CourseWaffleFlag
|
|
|
|
|
|
WAFFLE_FLAG_NAMESPACE = 'effort_estimation'
|
|
|
|
# .. toggle_name: effort_estimation.disabled
|
|
# .. toggle_implementation: CourseWaffleFlag
|
|
# .. toggle_default: False
|
|
# .. toggle_description: If effort estimations are confusing for a given course (e.g. the course team has added manual
|
|
# estimates), you can turn them off case by case here.
|
|
# .. toggle_use_cases: opt_out
|
|
# .. toggle_creation_date: 2021-07-27
|
|
EFFORT_ESTIMATION_DISABLED_FLAG = CourseWaffleFlag(f'{WAFFLE_FLAG_NAMESPACE}.disabled', __name__)
|