canvas-lms/packages/grading-utils
Spencer Olson 6380ed41f5 scale grades for points-based schemes (front-end)
closes EVAL-4364
flag=none

Test Plan:
1. In a course, create a points-based grading scheme worth 10 points
   with the following cutoffs:
   - 10 to 9 = A
   - < 9 to 7 = B
   - < 7 to 5 = C+
   - < 5 to 3 = C-
   - < 3 to 0 = D

   Use that grading scheme at the course-level.

2. Create a single assignment in the course with the following settings:
   - Points possible: 100
   - Display Grade as: Letter Grade (using the points-based scheme).

3. Go to the Gradebook and give a student 49.98 on the assignment.
   Verify the cell in the Gradebook shows C+.

4. Ensure this works for all places individual assignment grades are
   displayed (there are a lot :| see code changes for reference).

Change-Id: I84e689f244534546d856d489f345dea928255bbe
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/352271
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Derek Williams <derek.williams@instructure.com>
Reviewed-by: Kai Bjorkman <kbjorkman@instructure.com>
QA-Review: Kai Bjorkman <kbjorkman@instructure.com>
Product-Review: Ravi Koll <ravi.koll@instructure.com>
2024-07-15 17:15:24 +00:00
..
src scale grades for points-based schemes (front-end) 2024-07-15 17:15:24 +00:00
.gitignore Simplify grading-utils package 2024-01-02 20:42:19 +00:00
CHANGELOG.md scale grades for points-based schemes (front-end) 2024-07-15 17:15:24 +00:00
README.md Create grading-utils package 2023-07-19 15:19:24 +00:00
package.json scale grades for points-based schemes (front-end) 2024-07-15 17:15:24 +00:00

README.md

Grading Utils

The Grading Utils extracted in it's own npm package for use across multiple services

The primary consumer of the @instructure/grading-utils is canvas-lms, so documentation and references throughout documentation might reflect and assume the use of canvas-lms.

Install and Setup

As a published npm module, you can add @instructure/grading-utils to your node project by doing the following:

npm install @instructure/grading-utils --save

Tests

The test process already builds the assets so you can just run:

npm run test