MCPcopy Index your code
hub / github.com/codecombat/codecombat / getRequireSignupExperimentValue

Method getRequireSignupExperimentValue

app/models/User.js:1542–1552  ·  view source on GitHub ↗
(CAMPAIGN)

Source from the content-addressed store, hash-verified

1540 // return this.tryStartExperiment('template')
1541 // }
1542 getRequireSignupExperimentValue (CAMPAIGN) {
1543 if (!me.isAnonymous()) {
1544 return 'control'
1545 }
1546 const value = utils.getFirstNonNull(
1547 utils.getExperimentValueFromQuery(REQUIRE_SIGN_UP_EXPERIMENT[CAMPAIGN]),
1548 me.getExperimentValue(REQUIRE_SIGN_UP_EXPERIMENT[CAMPAIGN], null),
1549 )
1550
1551 return value ?? null
1552 }
1553
1554 getOrStartRequireSignupExperimentValue (CAMPAIGN) {
1555 if (!(Object.keys(REQUIRE_SIGN_UP_EXPERIMENT).includes(CAMPAIGN))) {

Calls 2

isAnonymousMethod · 0.80
getExperimentValueMethod · 0.80

Tested by

no test coverage detected