Skip to content

Commit

Permalink
Merge pull request #1445 from Automattic/remove/verticals-survey-v2
Browse files Browse the repository at this point in the history
Signup: Verticals Survey: Disable the Verticals Survey
  • Loading branch information
sirbrillig committed Dec 9, 2015
2 parents 45c6389 + 134cc61 commit 58eb9c2
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 56 deletions.
9 changes: 0 additions & 9 deletions client/lib/abtest/active-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@ module.exports = {
},
defaultVariation: 'singlePurchaseFlow'
},
verticalSurvey: {
datestamp: '20151202',
variations: {
noSurvey: 12,
oneStep: 44,
twoStep: 44
},
defaultVariation: 'noSurvey'
},
translatorInvitation: {
datestamp: '20150910',
variations: {
Expand Down
2 changes: 0 additions & 2 deletions client/lib/signup/step-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ module.exports = {
ab_test_variations: getSavedVariations(),
validate: false,
signup_flow_name: flowName,
nux_q_site_type: dependencies.surveySiteType,
nux_q_question_primary: dependencies.surveyQuestion,
jetpack_redirect: queryArgs.jetpackRedirect
}
), ( error, response ) => {
Expand Down
15 changes: 0 additions & 15 deletions client/signup/config/flows.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ var assign = require( 'lodash/object/assign' ),
*/
var config = require( 'config' ),
stepConfig = require( './steps' ),
abtest = require( 'lib/abtest' ).abtest,
user = require( 'lib/user' )();

function getCheckoutDestination( dependencies ) {
Expand Down Expand Up @@ -65,20 +64,6 @@ const flows = {
lastModified: '2015-09-22'
},

'vert-blog': {
steps: abtest( 'verticalSurvey' ) === 'noSurvey' ? [ 'themes', 'domains', 'plans', 'user' ] : [ 'survey-blog', 'themes', 'domains', 'plans', 'survey-user' ],
destination: getCheckoutDestination,
description: 'Categorizing blog signups for Verticals Survey',
lastModified: null
},

'vert-site': {
steps: abtest( 'verticalSurvey' ) === 'noSurvey' ? [ 'themes', 'domains', 'plans', 'user' ] : [ 'survey-site', 'themes', 'domains', 'plans', 'survey-user' ],
destination: getCheckoutDestination,
description: 'Categorizing site signups for Verticals Survey',
lastModified: null
},

headstart: {
steps: [ 'theme-headstart', 'domains-with-theme', 'plans', 'user' ],
destination: getCheckoutDestination,
Expand Down
4 changes: 0 additions & 4 deletions client/signup/config/step-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ var EmailSignupComponent = require( 'signup/steps/email-signup-form' ),
PlansStepComponent = require( 'signup/steps/plans' ),
DomainsStepComponent = require( 'signup/steps/domains' ),
DSSStepComponent = require( 'signup/steps/dss' ),
SurveyStepComponent = require( 'signup/steps/survey' ),
config = require( 'config' );

module.exports = {
Expand All @@ -18,9 +17,6 @@ module.exports = {
test: config( 'env' ) === 'development' ? require( 'signup/steps/test-step' ) : undefined,
plans: PlansStepComponent,
domains: DomainsStepComponent,
'survey-blog': SurveyStepComponent,
'survey-site': SurveyStepComponent,
'survey-user': EmailSignupComponent,
'domains-with-theme': DomainsStepComponent,
'theme-dss': DSSStepComponent,
'jetpack-user': EmailSignupComponent
Expand Down
26 changes: 0 additions & 26 deletions client/signup/config/steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,32 +35,6 @@ module.exports = {
stepName: 'test',
},

'survey-user': {
stepName: 'survey-user',
apiRequestFunction: stepActions.createAccount,
dependencies: [ 'surveySiteType', 'surveyQuestion' ],
providesToken: true,
providesDependencies: [ 'bearer_token', 'username' ]
},

'survey-blog': {
stepName: 'survey-blog',
props: {
surveySiteType: 'blog',
isOneStep: abtest( 'verticalSurvey' ) === 'oneStep'
},
providesDependencies: [ 'surveySiteType', 'surveyQuestion' ]
},

'survey-site': {
stepName: 'survey-site',
props: {
surveySiteType: 'site',
isOneStep: abtest( 'verticalSurvey' ) === 'oneStep'
},
providesDependencies: [ 'surveySiteType', 'surveyQuestion' ]
},

plans: {
stepName: 'plans',
apiRequestFunction: stepActions.addPlanToCart,
Expand Down

0 comments on commit 58eb9c2

Please sign in to comment.