Skip to content

Canvas API: Teacher Mass Confirm Tasks #59

@IsoPhoenix

Description

@IsoPhoenix

Canvas API: Teacher Mass Confirm Tasks

Overview

Functional auto-process button on the teacher's Requests page that will mass confirm or reject all Canvas API tasks.

IMPORTANT

  • You need to merge from main first as it looks like the canvas-api branch is behind.

Frontend

Add the auto-process button on the teacher's Requests page (ConfirmTasksTable)

Backend

  • Write a mutation ProcessCanvasTask in mutations.js that, given a Canvas Task, will:
    • Fetch the email of the user who submitted the task
    • Use calls to the /submissions and /users endpoints of the Canvas API to check for the existence of a submission from a user with a matching email
    • If so, confirm the task by calling confirmTask.
  • Upon clicking the auto-process button, loop through the list of completedTasks for tasks of type == 'canvas' and run ProcessCanvasTask for each.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions