You can now safely run grade calculator from the user's shard in a
cross-shard enrollment.
Fixes CNVS-36097
Test plan:
* Create a course on one shard
* Create a grading period for that course
* Create a user in another shard
* Enroll that user in the first course as a student
* Create an assignment in the grading period
* Grade the student
* Delete the grading period
* GradeCalculator should recalculate scores
* Make sure the user's enrollment only has 1 active Score, and the
one for the grading period is soft-deleted
Change-Id: Ia779ff8c873c45b2664da79458d1f93225383717
Reviewed-on: https://gerrit.instructure.com/107425
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
Reviewed-by: Spencer Olson <solson@instructure.com>
QA-Review: Anju Reddy <areddy@instructure.com>
Product-Review: Keith T. Garner <kgarner@instructure.com>
Canvas is a modern, open-source LMS
developed and maintained by Instructure Inc. It is released under the
AGPLv3 license for use by anyone interested in learning more about or using
learning management systems.