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

Method getGalaxyTutorialExperimentValue

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

Source from the content-addressed store, hash-verified

1563 }
1564
1565 getGalaxyTutorialExperimentValue () {
1566 // Returns the value the user is already assigned to (or a query-string override),
1567 // or null if the user has never been enrolled. This intentionally ignores the
1568 // home-user gating so that anyone already enrolled keeps their assigned value.
1569 return utils.getFirstNonNull(
1570 utils.getExperimentValueFromQuery(GALAXY_TUTORIAL_EXPERIMENT),
1571 me.getExperimentValue(GALAXY_TUTORIAL_EXPERIMENT, null),
1572 ) ?? null
1573 }
1574
1575 getOrStartGalaxyTutorialExperimentValue () {
1576 // Home users only: exclude teachers/students and users on the China infrastructure

Calls 1

getExperimentValueMethod · 0.80

Tested by

no test coverage detected