feat: add recommendation panel
- added a waffle flag to control recommendation panel - add react code for the panel VAN-984
This commit is contained in:
24
common/djangoapps/student/toggles.py
Normal file
24
common/djangoapps/student/toggles.py
Normal file
@@ -0,0 +1,24 @@
|
||||
"""
|
||||
Toggles for Dashboard page.
|
||||
"""
|
||||
from edx_toggles.toggles import WaffleFlag
|
||||
|
||||
|
||||
# Namespace for student waffle flags.
|
||||
WAFFLE_FLAG_NAMESPACE = 'student'
|
||||
|
||||
# Waffle flag to enable amplitude recommendations
|
||||
# .. toggle_name: student.enable_amplitude_recommendations
|
||||
# .. toggle_implementation: WaffleFlag
|
||||
# .. toggle_default: False
|
||||
# .. toggle_description: Supports rollout of a POC for amplitude recommendations.
|
||||
# .. toggle_use_cases: temporary
|
||||
# .. toggle_creation_date: 2022-06-24
|
||||
# .. toggle_target_removal_date: None
|
||||
# .. toggle_warning: None
|
||||
# .. toggle_tickets: VAN-984
|
||||
ENABLE_AMPLITUDE_RECOMMENDATIONS = WaffleFlag(f'{WAFFLE_FLAG_NAMESPACE}.enable_amplitude_recommendations', __name__)
|
||||
|
||||
|
||||
def should_show_amplitude_recommendations():
|
||||
return ENABLE_AMPLITUDE_RECOMMENDATIONS.is_enabled()
|
||||
Reference in New Issue
Block a user