-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix grading period report and cache calls to GradingPeriod#last
refs CNVS-30880 The expensive grade calculation was moved out of the database access loop to help avoid the database cursor being open too long. GradingPeriod#last? is only called when doing assignment filtering. This change avoids a database call per student or course when doing large operations like grade results. Test plan: * set up grading periods * run the "MGP Grade Export" report * try it with all terms and a specific term * make sure the grading period grades are correct Change-Id: I6009ad6541832b180b9f75e1786eabcc1736ea37 Reviewed-on: https://gerrit.instructure.com/88621 Tested-by: Jenkins Reviewed-by: Cameron Matheson <cameron@instructure.com> Product-Review: Cameron Matheson <cameron@instructure.com> Reviewed-by: Neil Gupta <ngupta@instructure.com> QA-Review: KC Naegle <knaegle@instructure.com>
- Loading branch information
Showing
3 changed files
with
59 additions
and
18 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