MCPcopy Create free account
hub / github.com/codecombat/codecombat / fetchDataAllClasses

Function fetchDataAllClasses

app/core/store/modules/teacherDashboard.js:317–324  ·  view source on GitHub ↗
({ state, dispatch, rootGetters }, options = {})

Source from the content-addressed store, hash-verified

315 // My classes page
316 // options.data = { levelSessions: '' } -> properties needed for these objects, i.e. will be used as `project` in db queries
317 async fetchDataAllClasses ({ state, dispatch, rootGetters }, options = {}) {
318 const fetchPromises = []
319
320 fetchPromises.push(dispatch('courseInstances/fetchCourseInstancesForTeacher', state.teacherId, { root: true }))
321 fetchPromises.push(dispatch('courses/fetchReleased', undefined, { root: true }))
322
323 await Promise.all(fetchPromises)
324 },
325
326 // My classes page - without blocking loading indicator
327 async fetchDataAllClassesAsync ({ state, dispatch, rootGetters }, options = {}) {

Callers

nothing calls this directly

Calls 1

dispatchFunction · 0.85

Tested by

no test coverage detected