![]() - change assignment model to full assignment json - change select_mastery_path to return context module items in addition to assignments closes CYOE-329 Test plan: 1. Create a CYOE rule that includes an OR condition. Include the trigger assignment and some of the follow on assignments in a module 2. Grade a student so that they fall in the OR range 3. As the student, hit the modules API to determine which assignment sets are relevant: /api/v1/courses/:course_id/modules/:module_id/items?includes[]=mastery_paths Look for the conditional release rules of the trigger assignment 4. Verify that the follow on assignments listed show their submission_types attribute as an array 5. Select a mastery path as the student /api/v1/courses/:course_id/modules/:module_id/items/:trigger_item_id/select_mastery_path?assignment_set_id=:assignment_set_id 6. Verify that the response includes: - a meta tag specifying that the primary content is the assignments - an assignments tag listing all assignments in the assignment set (including those w/o modules) - an items tag listing all context module items related to those assignments 7. Verify that the UI version of the above (visiting context modules page with a "select assignment set" block showing, select the assignment set from the choice page) works as expected Change-Id: Iab652af64fa02a76e896bfc0a21f882ad51319ab Reviewed-on: https://gerrit.instructure.com/91457 Tested-by: Jenkins Reviewed-by: Christian Prescott <cprescott@instructure.com> QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com> Product-Review: Michael Brewer-Davis <mbd@instructure.com> |
||
---|---|---|
.. | ||
html | ||
v1 | ||
errors.rb |