User Tours are walkthroughs we are able to give in our frontends. This sets up the backend support for them by creating the model, setting up the initial backfill, adds in a signal handler to init the UserTour model on User creation, and sets up some endpoints to get user tour information and update it. It is also being initialized with a waffle flag to control the rollout. The flag is intended to control all tours and not allow for opting into only some tours.
17 lines
593 B
Python
17 lines
593 B
Python
"""
|
|
Toggles for the User Tours Experience.
|
|
"""
|
|
|
|
from edx_toggles.toggles import WaffleFlag
|
|
|
|
# .. toggle_name: user_tours.tours_enabled
|
|
# .. toggle_implementation: WaffleFlag
|
|
# .. toggle_default: False
|
|
# .. toggle_description: This flag enables the use of user tours in the LMS.
|
|
# .. toggle_warnings: None
|
|
# .. toggle_use_cases: temporary
|
|
# .. toggle_creation_date: 2021-12-01
|
|
# .. toggle_target_removal_date: 2022-02-14
|
|
# .. toggle_tickets: https://openedx.atlassian.net/browse/AA-1026
|
|
USER_TOURS_ENABLED = WaffleFlag('user_tours.tours_enabled', module_name=__name__, log_prefix='user_tours')
|