Skip to content

Commit

Permalink
Merge pull request #3387 from mozilla/email-first-remove-experiment r=@…
Browse files Browse the repository at this point in the history
…vbudhram

chore(email-first): Remove email-first related experiment code
  • Loading branch information
Shane Tomlinson authored Nov 18, 2019
2 parents 9a6c142 + 46d9b79 commit 28b3857
Show file tree
Hide file tree
Showing 11 changed files with 61 additions and 462 deletions.
1 change: 0 additions & 1 deletion packages/fxa-content-server/app/scripts/lib/experiment.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const STARTUP_EXPERIMENTS = {};
* after the app has started.
*/
const MANUAL_EXPERIMENTS = {
emailFirst: BaseExperiment,
// For now, the send SMS experiment only needs to log "enrolled", so
// no special experiment is created.
signupCode: BaseExperiment,
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const _ = require('underscore');
const experimentGroupingRules = [
require('./communication-prefs'),
require('./cwts-on-signup-password'),
require('./email-first'),
require('./is-sampled-user'),
require('./send-sms-install-link'),
require('./sentry'),
Expand Down
13 changes: 3 additions & 10 deletions packages/fxa-content-server/app/scripts/views/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import AuthErrors from '../lib/auth-errors';
import CachedCredentialsMixin from './mixins/cached-credentials-mixin';
import Cocktail from 'cocktail';
import CoppaMixin from './mixins/coppa-mixin';
import EmailFirstExperimentMixin from './mixins/email-first-experiment-mixin';
import FirefoxFamilyServicesTemplate from '../templates/partial/firefox-family-services.mustache';
import TokenCodeExperimentMixin from './mixins/token-code-experiment-mixin';
import FlowBeginMixin from './mixins/flow-begin-mixin';
Expand Down Expand Up @@ -69,19 +68,14 @@ class IndexView extends FormView {

if (isLegacySigninSignupDisabled && action !== 'force_auth') {
return this.chooseEmailActionPage();
}

if (action && action !== 'email') {
} else if (action === 'force_auth') {
this.replaceCurrentPage(action);
} else if (
this.isInEmailFirstExperimentGroup('treatment') ||
action === 'email'
) {
} else if (action) {
return this.chooseEmailActionPage();
} else if (this.getSignedInAccount().get('sessionToken')) {
this.replaceCurrentPage('settings');
} else {
this.replaceCurrentPage('signup');
return this.chooseEmailActionPage();
}
}

Expand Down Expand Up @@ -228,7 +222,6 @@ Cocktail.mixin(
IndexView,
CachedCredentialsMixin,
CoppaMixin({}),
EmailFirstExperimentMixin(),
TokenCodeExperimentMixin,
FlowBeginMixin,
FormPrefillMixin,
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import sinon from 'sinon';

describe('lib/experiments/grouping-rules/index', () => {
it('EXPERIMENT_NAMES is exported', () => {
assert.lengthOf(ExperimentGroupingRules.EXPERIMENT_NAMES, 8);
assert.lengthOf(ExperimentGroupingRules.EXPERIMENT_NAMES, 7);
});

describe('choose', () => {
Expand Down
Loading

0 comments on commit 28b3857

Please sign in to comment.