As a fully virtual school for 12,500 students across grades K-12, a part of our "compliance" grade is determining
- how many assignments has the student been assigned per course
- how many per assignment group per course
- out of __ assignments, ___ were completed with a (%) value provided
- what was their individualized (cached) due date
- was the assignment complete
- if so, was it completed late?
In other words, has the student been compliant in completing assignments?
The GET Submissions API call returns all the data needed using:
function getSubmissions(courseId) {
return fetchAll(canvasDomain + `/courses/${courseId}/students/submissions?student_ids[]=all`);
}
And we can successfully pull one course at a time but we have about 1400 courses and when the course id is added to the array (const course = [];), the call seems to fire all at once and then times out.
Other important info:
- I am a total noob to coding and API calls. Am taking a course to learn but at the moment, I know enough on my own to be dangerous 😂
- Using JavaScript and Visual Studio Code. Started out in Postman but could not seem to get the call to work right there.
- Image of sample submissions file attached
- Working with @ChrisPonzio