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

Method fetchStudents

app/views/courses/TeacherClassView.js:226–234  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

224 getTitle () { return (this.classroom != null ? this.classroom.get('name') : undefined) }
225
226 fetchStudents () {
227 return Promise.all(this.students.fetchForClassroom(this.classroom, { removeDeleted: true, data: { project: 'firstName,lastName,name,email,products,deleted' } }))
228 .then(() => {
229 if (this.destroyed) { return }
230 this.removeDeletedStudents() // TODO: Move this to mediator listeners?
231 this.calculateProgressAndLevels()
232 return (typeof this.debouncedRender === 'function' ? this.debouncedRender() : undefined)
233 })
234 }
235
236 fetchSessions () {
237 return Promise.all(this.classroom.sessions.fetchForAllClassroomMembers(this.classroom))

Callers 4

constructorMethod · 0.95
assignCourseMethod · 0.95
removeCourseMethod · 0.95
syncGoogleClassroomMethod · 0.95

Calls 2

removeDeletedStudentsMethod · 0.95
fetchForClassroomMethod · 0.45

Tested by

no test coverage detected