canvas-lms/app/models/grading_period
Derek Bender 6258bd46a6 ensure a user's enrollments api works when given a grading period
fixes CNVS-22526

Test plan:

1. Obtain an account-level grading period id. A list of all
    grading period ids can be accessed through:
      /api/v1/accounts/self/grading_periods
2. Create a course and enroll a student in it. Note the
    student's id from the course's people page.
3. Create an assignment in the course due during the
    grading period.
4. Navigate to the gradebook, set the account-level
    grading period, and verify the assignment is in it.
5. Give a grade to the student's assignments
6. Call the API and verify that it responds with data.
    The response will contain "grades" which should
    correspond exactly to the info for the student in the
    grading period.
    The API itself will look like:
    /api/v1/users/:student_id/enrollments?grading_period_id=:grading_period_id

Change-Id: I6c1080345a338750402e86194503f3b0911a4da9
Reviewed-on: https://gerrit.instructure.com/63215
Tested-by: Jenkins
Reviewed-by: Keith T. Garner <kgarner@instructure.com>
Reviewed-by: Derek Bender <djbender@instructure.com>
QA-Review: Jason Carter <jcarter@instructure.com>
Product-Review: Josh Simpson <jsimpson@instructure.com>
2015-09-24 16:19:16 +00:00
..
account_grading_period_finder.rb ensure a user's enrollments api works when given a grading period 2015-09-24 16:19:16 +00:00
course_grading_period_finder.rb filter assignments by overrides when necessary 2015-08-20 15:37:12 +00:00