20 lines
816 B
Python
20 lines
816 B
Python
"""
|
|
Learner analytics helpers and settings
|
|
"""
|
|
from openedx.core.djangoapps.waffle_utils import (
|
|
CourseWaffleFlag, WaffleFlag, WaffleFlagNamespace
|
|
)
|
|
|
|
# Namespace for learner analytics waffle flags.
|
|
WAFFLE_FLAG_NAMESPACE = WaffleFlagNamespace(name='learner_analytics')
|
|
|
|
# Simple safety valve in case the modal breaks DOM.
|
|
# Used in the Learner Analytics and Enhanced Support tests
|
|
# Please do not turn off this flag until all tests have been resolved
|
|
# https://openedx.atlassian.net/browse/LEARNER-3377
|
|
# https://openedx.atlassian.net/browse/LEARNER-3514
|
|
INCLUDE_UPSELL_MODAL = WaffleFlag(WAFFLE_FLAG_NAMESPACE, 'include_upsell_modal')
|
|
|
|
# Enables the learner analytics page for different courses via waffle course overrides.
|
|
ENABLE_DASHBOARD_TAB = CourseWaffleFlag(WAFFLE_FLAG_NAMESPACE, 'enable_dashboard_tab')
|