switch rubrics queries to use outcome proficiency type
refs OUT-3766 flag=none Test plan: qa-cr Change-Id: I320ee289984a4ca4e17cabc61f0d3e25a749053e Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/243854 Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com> Reviewed-by: Pat Renner <prenner@instructure.com> Reviewed-by: Augusto Callejas <acallejas@instructure.com> QA-Review: Brian Watson <bwatson@instructure.com> Product-Review: Michael Brewer-Davis <mbd@instructure.com>
This commit is contained in:
parent
fd2d5323b5
commit
1c794a6483
|
@ -54,7 +54,9 @@ export default function RubricsQuery(props) {
|
|||
<RubricTab
|
||||
assessments={data.submission?.rubricAssessmentsConnection?.nodes}
|
||||
key={props.submission.attempt}
|
||||
proficiencyRatings={data.course.account?.proficiencyRatingsConnection?.nodes}
|
||||
proficiencyRatings={
|
||||
data.course.account?.outcomeProficiency?.proficiencyRatingsConnection?.nodes
|
||||
}
|
||||
rubric={data.assignment.rubric}
|
||||
/>
|
||||
)
|
||||
|
|
|
@ -46,8 +46,10 @@ function gradedOverrides() {
|
|||
},
|
||||
Course: {
|
||||
account: {
|
||||
proficiencyRatingsConnection: {
|
||||
nodes: [{}]
|
||||
outcomeProficiency: {
|
||||
proficiencyRatingsConnection: {
|
||||
nodes: [{}]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -59,7 +61,9 @@ function ungradedOverrides() {
|
|||
Submission: {rubricAssessmentsConnection: null},
|
||||
Course: {
|
||||
account: {
|
||||
proficiencyRatingsConnection: null
|
||||
outcomeProficiency: {
|
||||
proficiencyRatingsConnection: null
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -88,7 +92,8 @@ async function makeProps(opts = {}) {
|
|||
const result = await mockQuery(RUBRIC_QUERY, allOverrides, variables)
|
||||
return {
|
||||
assessments: result.data.submission.rubricAssessmentsConnection?.nodes,
|
||||
proficiencyRatings: result.data.course.account.proficiencyRatingsConnection?.nodes,
|
||||
proficiencyRatings:
|
||||
result.data.course.account.outcomeProficiency?.proficiencyRatingsConnection?.nodes,
|
||||
rubric: result.data.assignment.rubric
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ async function makeMocks() {
|
|||
Assignment: {rubric: {}},
|
||||
Rubric: {criteria: [{}]},
|
||||
Submission: {rubricAssessmentsConnection: null},
|
||||
Account: {proficiencyRatingsConnection: null}
|
||||
Account: {outcomeProficiency: {proficiencyRatingsConnection: null}}
|
||||
}
|
||||
|
||||
const result = await mockQuery(RUBRIC_QUERY, overrides, variables)
|
||||
|
|
|
@ -62,9 +62,11 @@ export const RUBRIC_QUERY = gql`
|
|||
}
|
||||
course(id: $courseID) {
|
||||
account {
|
||||
proficiencyRatingsConnection {
|
||||
nodes {
|
||||
...ProficiencyRating
|
||||
outcomeProficiency {
|
||||
proficiencyRatingsConnection {
|
||||
nodes {
|
||||
...ProficiencyRating
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue