Revert "feat: add debugging logs to help figure out why experiment isn't activating in production"

This commit is contained in:
Matthew Piatetsky
2021-06-01 15:10:14 -04:00
committed by GitHub
parent 58d36e966b
commit f89ae754e4
2 changed files with 3 additions and 16 deletions

View File

@@ -2,8 +2,6 @@
Courseware API Mixins.
"""
import logging
from babel.numbers import get_currency_symbol
from common.djangoapps.course_modes.models import CourseMode
@@ -13,8 +11,6 @@ from lms.djangoapps.experiments.utils import STREAK_DISCOUNT_EXPERIMENT_FLAG
from openedx.features.course_duration_limits.access import get_user_course_expiration_date
from openedx.features.discounts.applicability import can_show_streak_discount_experiment_coupon
log = logging.getLogger(__name__)
def get_celebrations_dict(user, enrollment, course, browser_timezone):
"""
@@ -38,12 +34,10 @@ def get_celebrations_dict(user, enrollment, course, browser_timezone):
# We only want to bucket people into the AA-759 experiment if they are going to see the streak celebration
if streak_length_to_celebrate:
log.info('AA759debug 0')
# 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()
log.info('AA759debug 8 %s %s', user.username, celebrations['streak_discount_experiment_enabled'])
return celebrations