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

Function getReleased

app/core/api/courses.js:26–40  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

24 },
25
26 getReleased (options) {
27 if (options == null) { options = {} }
28 if (options.data == null) { options.data = {} }
29 if (me.isInternal()) {
30 options.data.fetchInternal = true // will fetch 'released', 'beta', and 'internalRelease' courses
31 } else {
32 options.data.releasePhase = 'released'
33 if (me.isBetaTester() || me.isStudent() || me.isAdmin()) {
34 // Teacher beta testers, or any students (since students might be in teacher beta tester's classrooms) will get beta courses
35 options.data.fetchBeta = true // will fetch 'released' and 'beta' courses
36 }
37 }
38 options.data.cacheEdge = true
39 return fetchJson('/db/course', options)
40 },
41
42 fetchChangeLog (options) {
43 if (options == null) { options = {} }

Callers

nothing calls this directly

Calls 4

isInternalMethod · 0.80
isBetaTesterMethod · 0.80
isStudentMethod · 0.80
isAdminMethod · 0.80

Tested by

no test coverage detected