Analytics: clean up old A/B test code & add username verify flag (#10754)

* chore(analytics): clean up old A/B test code & add username verify

* fix(lint): more AB cleanup
This commit is contained in:
Sabe Jones
2018-10-13 13:03:20 -05:00
committed by GitHub
parent c64ea0a9a9
commit 25ed05ab0a
7 changed files with 4 additions and 48 deletions
-2
View File
@@ -200,8 +200,6 @@ function trackCronAnalytics (analytics, user, _progress, options) {
function awardLoginIncentives (user) {
if (user.loginIncentives > MAX_INCENTIVES) return;
// A/B test 2016-12-21: Should we deliver notifications for upcoming incentives on days when users don't receive rewards?
if (!loginIncentives[user.loginIncentives].rewardKey && user._ABtests && user._ABtests.checkInModals === '20161221_noCheckInPreviews') return;
// Remove old notifications if they exists
user.notifications.forEach((notif, index) => {