frontend
frontend copied to clipboard
Assessments & Grading Workspace: Add folders mode
Description
To be merged with Grader #319 and Backend #1110
- Adds folder support to Assessment & Grading workspaces
- Folder mode is only supported for Source >= S2
- Support for test cases to be ran on the existing Grader [See grader repo PR]
- Support for test cases to be ran locally
Type of change
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update
- [ ] Code quality improvements
Note: This PR might break "Teams" functionality. The shouldDisableSaveButton() function on line 805 in src\commons\assessmentWorkspace\AssessmentWorkspace.tsx causes the save button to always be disabled in Assessments. Hence we had to comment it out.
How to test
- Enter any Assessment and enable folder mode
- Question files from future questions that do not have a submission yet should not appear in the Folder Mode
- All question files should not be editable except for the current question
- Testcases should have an entrypoint file for the current question (targetting the current question)
- After a submission is made, the Grading workspace should be able to view the submission and also run all files in Folder Mode
- If testcases are present, and auto grading is enabled, it should auto grade using Grader
Checklist
- [x] I have tested this code
- [ ] I have updated the documentation