This change adds the ability to select a specific grading period on
the Grades tab in the K-5 dashboard. The select drop-down defaults
to "Current Grading Period", which will show grades from the currently
active grading period for each course (if any). The other options in
the drop-down are all grading periods associated with all the courses
the user is enrolled in, and selecting one will filter out any courses
not associated with that grading period.
closes LS-1914
flag = canvas_for_elementary
Test plan:
Set up grading periods:
- Go to /accounts/<account_id>/terms and set up at least 2 terms if
you don't already have multiple terms set up
- Go to /accounts/<account_id>/grading_standards and click
"+ Set of Grading Periods" under the "Grading Periods" tab
- Add 2 grading period groups, each with at least 2 grading periods.
- Create or go to 2 existing courses, and make sure each is
associated with a different term
- Create or update assignments with points for both courses, making
sure that some of the assignments are due in the date ranges of
all 4 grading periods
- Grade the assignments for a student enrolled in both courses
Verify grading periods selector:
- Log in as the student with graded assignments in both courses
- Go to the "Grades" tab on the dashboard
- Expect to see grades from the latest grading period in both
courses
- Select a specific grading period
- Expect to only see courses associated with that grading period
- Expect courses that appear to have scores / grades for that
grading period (or "Not graded" if none of their assignments have
been submitted / grades for that grading period)
- Update one grading period group so that none of its grading
periods apply to the current date
- As the student, go back to the grades tab on the K-5 dashboard
- Expect the course associated with that grading period group to
show "--" instead of "Not graded"
Change-Id: I7f73e8a4213ecd21e6138108aede9748b52ce569
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/259180
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Peyton Craighill <pcraighill@instructure.com>
Reviewed-by: Nate Armstrong <narmstrong@instructure.com>
QA-Review: Nate Armstrong <narmstrong@instructure.com>