frontend icon indicating copy to clipboard operation
frontend copied to clipboard

Assessments & Grading Workspace: Add folders mode

Open accountexeregister opened this issue 1 year ago • 6 comments

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

  1. Enter any Assessment and enable folder mode
  2. Question files from future questions that do not have a submission yet should not appear in the Folder Mode
  3. All question files should not be editable except for the current question
  4. Testcases should have an entrypoint file for the current question (targetting the current question)
  5. After a submission is made, the Grading workspace should be able to view the submission and also run all files in Folder Mode
  6. 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

accountexeregister avatar Feb 07 '24 15:02 accountexeregister