Skip to content

Success with 0 points #300

@adhameer

Description

@adhameer

Related to #207: when a student doesn't trigger a penalty, we would like to give them a success message, but award them no points for it. Previously we were able to do this with a status of Success 0, but as of 5c24c81 this no longer works because of the following code:

(fun n -> if n > 0 then Success n else if n < 0 then Penalty (-n)
else Failure) ;

and it now displays as a Failure instead. We could use Informative or Important, but prefer the positive feedback + green background of the Success status. Could this be fixed?

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