Optionally load assignments by grading period in the Gradebook.
closes EVAL-1337
flag=gradebook_load_assignments_by_grading_period
Test Plan:
1. Go to SiteAdmin settings and disable 'Load Gradebook Assignments by
Grading Period'.
2. Go to the Gradebook in a course that uses Grading Periods. Select
a Grading Period from the dropdown. Open the dev tools in your
browser and then refresh the page.
3. Upon refresh, verify in the Network tab of your dev tools that there
is a single API call to get assignment_groups, and that API call does
not include an `assignment_ids` param. Verify that totals in the
gradebook show correctly when switching between grading periods.
4. Go to SiteAdmin settings and enable 'Load Gradebook Assignments by
Grading Period'.
5. Go back to the Gradebook. Select a Grading Period from the dropdown
and then refresh the page.
6. Upon refresh, verify in the Network tab of your dev tools that there
are two API calls to get assignment_groups, and then each contain
`assignment_ids` params. Verify that totals in the gradebook show
correctly when switching between grading periods.
Change-Id: I9a52613966449f811d82fe315ae5cff2984e35e4
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/254165
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Kai Bjorkman <kbjorkman@instructure.com>
Product-Review: Syed Hussain <shussain@instructure.com>
Reviewed-by: Syed Hussain <shussain@instructure.com>
Reviewed-by: Adrian Packel <apackel@instructure.com>