Skip to content

Late resubmit button is red when all test cases are hidden #12637

Description

@Christian2147

Describe the bug
In certain situations, likely when all the test cases are hidden, and the assignment is past due, the "Late resubmit" button shows in red. This behavior is only intended when the user has a visible score (with visible test cases) less than 50%. However, when all test cases are hidden, this button will appear red no matter what if "late resubmit" is an option. This behavior has been seen in the wild in specific courses, such as CSCI 4380 Database systems, where lecture exercises with all their test cases hidden are used.

Expected behavior
The button should appear gray for "resubmit" and "late resubmit" UNLESS the user has a total of less than 50% on the visible test cases from the auto-grader. If that is the case, then it should appear red. Also, the submit button should always be blue. Generally speaking, blue = I encourage you to do this, grey = no immediate actions necessary, red = something is wrong.

To Reproduce
Steps to reproduce the behavior:

  1. Create a notebook gradeable with any set of multiple choice questions
  2. Enable autograding for that gradeable and set up an autograding config
  3. Make sure to set all test cases to HIDDEN
  4. Make sure the gradeable is open to submissions and make a test submission
  5. Wait for the autograder to complete
  6. Set the due date to be in the past
  7. Go to gradeable page and observe the "Late resubmit" button
  8. See error

Configuration

  • OS: [e.g. Windows, Linux, ...] Windows
  • Browser [e.g. Chrome, Safari] Chrome

Screenshots
Image

Additional context
More people should verify if this ug appears under any other circumstances.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions