Skip to content
Snippets Groups Projects
Unverified Commit 74c0181e authored by Matthew Piatetsky's avatar Matthew Piatetsky Committed by GitHub
Browse files

Merge pull request #27804 from edx/AA-759b

[AA-759] fix: pass in course key when checking the bucket for the streak discount experiment
parents 5a58b940 cea450a3
No related branches found
Tags release-2021-05-19-17.13
No related merge requests found
......@@ -175,6 +175,8 @@ class ExperimentWaffleFlag(CourseWaffleFlag):
Arguments:
course_key (Optional[CourseKey])
This argument should always be passed in a course-aware context even if
course aware bucketing is False.
track (bool):
Whether an analytics event should be generated if the user is
bucketed for the first time.
......
......@@ -37,7 +37,7 @@ def get_celebrations_dict(user, enrollment, course, browser_timezone):
# We only want to bucket people into the AA-759 experiment
# if the course has not ended, is upgradeable and the user is not an enterprise learner
if can_show_streak_discount_experiment_coupon(user, course):
celebrations['streak_discount_experiment_enabled'] = STREAK_DISCOUNT_EXPERIMENT_FLAG.is_enabled()
celebrations['streak_discount_experiment_enabled'] = STREAK_DISCOUNT_EXPERIMENT_FLAG.is_enabled(course.id)
return celebrations
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment