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

Method getOrStartGalaxyTutorialExperimentValue

app/models/User.js:1575–1590  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1573 }
1574
1575 getOrStartGalaxyTutorialExperimentValue () {
1576 // Home users only: exclude teachers/students and users on the China infrastructure
1577 // up front, before even looking at an existing value.
1578 if (me.isTeacher() || me.isStudent()) {
1579 return 'control'
1580 }
1581 if (features?.chinaInfra) {
1582 return 'control'
1583 }
1584 // Continue the experiment for anyone already enrolled.
1585 const value = this.getGalaxyTutorialExperimentValue()
1586 if (value != null) {
1587 return value
1588 }
1589 return this.tryStartExperiment(GALAXY_TUTORIAL_EXPERIMENT)
1590 }
1591 }
1592
1593 User.initClass()

Callers

nothing calls this directly

Calls 4

tryStartExperimentMethod · 0.95
isTeacherMethod · 0.80
isStudentMethod · 0.80

Tested by

no test coverage detected