-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to allow bonus points in assessments (#4090)
* Initial schema and database update * Add new field to sync course-db * Add field to assessment instance as well * Show bonus points in students' assessment overview * Update score based on max bonus * Add missing field * Ensure max_bonus_points is not above available points in instance * Add max_bonus_points to API entrypoint for assessment instances * Docs * Test (for now with other tests removed) * Fixed variable name * Proper test now working * Example course assessment * Remove unnecessary clientFilesAssessment in bonus points HW in test * Minor changes in documentation * Update in sprocs comments in variable names for clarity * Remove extra blank line Co-authored-by: Nathan Walters <nathan@prairielearn.com> * Properly handle a null max_bonus_points Co-authored-by: Matthew West <matt@prairielearn.com> Co-authored-by: Nathan Walters <nathan@prairielearn.com> Co-authored-by: Matthew West <matt@prairielearn.com>
- Loading branch information
1 parent
bd4e3aa
commit a941343
Showing
19 changed files
with
221 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ALTER TABLE assessments ADD COLUMN IF NOT EXISTS max_bonus_points DOUBLE PRECISION; | ||
ALTER TABLE assessment_instances ADD COLUMN IF NOT EXISTS max_bonus_points DOUBLE PRECISION; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
testCourse/courseInstances/Sp15/assessments/hw7-bonusPoints/infoAssessment.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"uuid": "97ba7431-ebb2-463c-990c-94e1fdabdd75", | ||
"type": "Homework", | ||
"title": "Bonus points", | ||
"set": "Homework", | ||
"number": "7", | ||
"maxPoints": 10, | ||
"maxBonusPoints": 2, | ||
"allowAccess": [ | ||
{ | ||
"mode": "Public", | ||
"credit": 100 | ||
} | ||
], | ||
"zones": [ | ||
{ | ||
"questions": [ | ||
{"id": "partialCredit1", "points": 8}, | ||
{"id": "partialCredit2", "points": 8} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.