forked from instructure/canvas-lms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patchset cleans up a few N+1s related to grading periods and scores when the courses API is called for a student with include=current_grading_period_scores and include=total_scores fixes GRADE-300 test plan: - Have a few courses in an enrollment term with multiple grading periods set up. - Have a few courses in an enrollment term without MGP set up. - Register a student in those courses - As the student hit the courses API endpoint as: /api/v1/courses?include%5B%5D=needs_grading_count&include%5B%5D=syllabus_body&include%5B%5D=total_scores&include%5B%5D=term&include%5B%5D=permissions&include%5B%5D=current_grading_period_scores&include%5B%5D=favorites&include%5B%5D=tabs&per_page=99 - Observe in the logs that grading period information and score information is only loaded once and not once per course Change-Id: I5c2caf23bb7f51274a0a482ac8b4f3135e887cd6 Reviewed-on: https://gerrit.instructure.com/127447 Reviewed-by: Shahbaz Javeed <[email protected]> Tested-by: Jenkins Reviewed-by: Jeremy Neander <[email protected]> QA-Review: Derek Bender <[email protected]> Product-Review: Keith T. Garner <[email protected]>
- Loading branch information
Showing
4 changed files
with
53 additions
and
15 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