This is the final step in removing the deprecated flag_undefined_default as explained by the following ADR: https://github.com/edx/edx-platform/blob/master/openedx/core/djangoapps/waffle_utils/docs/decisions/0001-refactor-waffle-flag-default.rst Notes: * All uses of flag_undefined_default=False were always supposed to have been no-ops. * All uses of flag_undefined_default=True that are removed in this PR have been replaced by migrations in past PRs. * The temporary metric temp_flag_default_used id no longer reporting any data. ARCHBOM-1305
27 lines
812 B
Python
27 lines
812 B
Python
"""
|
|
Contains configuration for schedules app
|
|
"""
|
|
|
|
|
|
from openedx.core.djangoapps.waffle_utils import (
|
|
WaffleFlagNamespace, CourseWaffleFlag, WaffleFlag,
|
|
WaffleSwitch, WaffleSwitchNamespace,
|
|
)
|
|
|
|
WAFFLE_FLAG_NAMESPACE = WaffleFlagNamespace(name=u'schedules')
|
|
WAFFLE_SWITCH_NAMESPACE = WaffleSwitchNamespace(name=u'schedules')
|
|
|
|
CREATE_SCHEDULE_WAFFLE_FLAG = CourseWaffleFlag(
|
|
waffle_namespace=WAFFLE_FLAG_NAMESPACE,
|
|
flag_name=u'create_schedules_for_course',
|
|
)
|
|
|
|
COURSE_UPDATE_WAFFLE_FLAG = CourseWaffleFlag(
|
|
waffle_namespace=WAFFLE_FLAG_NAMESPACE,
|
|
flag_name=u'send_updates_for_course',
|
|
)
|
|
|
|
DEBUG_MESSAGE_WAFFLE_FLAG = WaffleFlag(WAFFLE_FLAG_NAMESPACE, u'enable_debugging')
|
|
|
|
COURSE_UPDATE_SHOW_UNSUBSCRIBE_WAFFLE_SWITCH = WaffleSwitch(WAFFLE_SWITCH_NAMESPACE, u'course_update_show_unsubscribe')
|