generated from layer5io/layer5-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
help wantedExtra attention is neededExtra attention is neededkind/bugSomething isn't workingSomething isn't workingkind/enhancementImprovement in current featureImprovement in current featurelanguage/goGolang relatedGolang related
Description
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
- π Instructions for contributing to academy-theme
- π¨ Wireframes and designs for Layer5 site in Figma (open invite)
- ππΎππΌ Questions: Layer5 Discussion Forum and Layer5 Community Slack
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is neededkind/bugSomething isn't workingSomething isn't workingkind/enhancementImprovement in current featureImprovement in current featurelanguage/goGolang relatedGolang related