Whenever I submit a file for evaluation, the Node console logs an error in which a foreign key constraint for the assignmentID fails on insertion, since there is no assignment to associate with. This only occurs when no course AND no assignment are selected for evaluation.
Steps to reproduce
Log into IFS, and go to the tool page
Enable a tool, and upload a file for evaluation, without setting the course or assignment it is for
Click the evaluate button
Check the Node console for the error message
Implementation
There needs to be a database migration that alters the feedback table so that assignmentID can be made NULL if need be when there is no assignment relating to current feedback.
Bug Report
Description
Whenever I submit a file for evaluation, the Node console logs an error in which a foreign key constraint for the
assignmentID
fails on insertion, since there is no assignment to associate with. This only occurs when no course AND no assignment are selected for evaluation.Steps to reproduce
Implementation
There needs to be a database migration that alters the feedback table so that assignmentID can be made NULL if need be when there is no assignment relating to current feedback.