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.
Update graphql to return module info for each alignment
closes OUT-5104 flag=outcome_alignment_summary Test plan: - Enable Improved Outcomes Management FF - Enable Outcome Alignment Summary FF - Go to Course > Outcomes - Create outcome and rubric and align them - Create assignment and align with rubric - Create classic quiz and align with rubric - Create graded discussion and align with rubric - Create two modules - "Module 1" and "Module 2"; publish "Module 1" then align assignment and quiz to it; keep "Module 2" unpublushed and align discussion to it - Open devtools -> network tab and reload the outcomes page; lookup outcome id in the graphql response and write it down; also write down the course id (obtain from URL) - Open in browser canvas.docker/graphiql - Execute query below replacing outcome and context id query MyQuery { learningOutcome(id: "1") { alignments(contextId: "1", contextType: "Course") { title moduleName moduleUrl moduleWorkflowState } } } - Verify that query returns 4 alignments - to rubric, quiz, assignment and discussion - Verify that for rubric alignment, module_url, module_name and module_workflw_state are null - Verify that for assignment and quiz alignments, module name is "Module 1" and module workflow state is "active" - Verify that for discussion alignment, module name is "Module 2" and module workflow state is "unpublished" - Verify that module urls for assignment and quiz alignments are the same - Copy module_url from quiz alignment, open new browser tab, type canvas.docker, append module url and press Enter - Verify that the course module page loads - Copy module_url from discussion alignment, open new browser tab, type canvas.docker, append the module url and press Enter - Verify that the course module page loads Change-Id: Icca3339f45170181d55c0e259ed78d73bc3b1cf9 Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/292252 Tested-by: Service Cloud Jenkins <[email protected]> QA-Review: Angela Gomba <[email protected]> Product-Review: Kyle Rosenbaum <[email protected]> Reviewed-by: Chrystal Langston <[email protected]> Reviewed-by: Marcus Pompeu <[email protected]>
- Loading branch information
Showing
4 changed files
with
154 additions
and
64 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