Allow omission of course_key in call to CourseWaffleFlag.is_enabled
This effectively evaluates the flag outside of the context of a course. This was previously available through `.is_enabled_without_course_context`, which has been removed in favor of simply `is_enabled()`. This was done to make the CourseWaffleFlag interface more uniform with that of WaffleFlag and ExperimentWaffleFlag and eliminate unecessary branching when handling CourseWaffleFlags.
Showing
- lms/djangoapps/experiments/flags.py 1 addition, 10 deletionslms/djangoapps/experiments/flags.py
- lms/djangoapps/experiments/tests/test_flags.py 0 additions, 2 deletionslms/djangoapps/experiments/tests/test_flags.py
- openedx/core/djangoapps/waffle_utils/__init__.py 10 additions, 28 deletionsopenedx/core/djangoapps/waffle_utils/__init__.py
Loading
Please register or sign in to comment