Skip to content

Prevent negative marks in quizzes, tests, exams and notify instructors of invalid inputΒ #96

@Vincamine

Description

@Vincamine

Current Behavior

Currently, if a quiz/test/exam question is assigned a negative mark (e.g., marks: -1), the system accepts the value without any validation, warning, or error. There is no mechanism to notify instructors that negative marks are not supported or may be unintended.

Expected Behavior

  • Add a validation logic to ensure the scoring logic never processes negative marks silently β€” either reject or default them explicitly.
  • Add Error message/log warning (e.g., using errorf) in the template engine when .marks < 0.
  • Display a validation phase in UI if negative marks are found in the YAML.
  • Update the behavior accordingly in the Academy related Documentations.

Screenshots/Logs

Environment

  • Host OS: Mac Linux Windows

Contributor Guide and Resources

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededkind/bugSomething isn't workingkind/enhancementImprovement in current featurelanguage/goGolang related

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions