-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: draft assessment response serializer #2067
Conversation
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## feat/2023-dual-ui #2067 +/- ##
====================================================
Coverage ? 94.99%
====================================================
Files ? 188
Lines ? 19254
Branches ? 1754
====================================================
Hits ? 18290
Misses ? 725
Partials ? 239
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
7dae282
to
41dadaf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like there was some confusion over the contract. The grades should actually be under the top-level assessments
key returned from page context. This is currently under submission
key.
{
"assessments":
{
effectiveAssessmentType: "staff", "peer", or "self"
"staff": (Optional)
{
stepScore: (Score)
assessment: (Assessment Data Shape)
}
"peers": (Optional)[]
{
stepScore: (Score)
assessments: (Assessment Data Shape)[]
}
"peerUnweighted": (Optional)
{
stepScore: Null
assessments: (Assessment Data Shape)[]
}
"self": (Optional)
{
stepScore: (Score shape)
assessment: (Assessment Data Shape)
}
}
}
987247d
to
6cc88d9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still a difference from contract. assessments
and submission
are different shapes.
openassessment/xblock/ui_mixins/mfe/test_page_context_serializer.py
Outdated
Show resolved
Hide resolved
3fb97c9
to
4494b80
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just note my comment to remove some commented-out code
chore: update tests chore: update tests chore: add self step chore: update requested change chore: update shape
4494b80
to
b2d849d
Compare
Merge to feat/2023-dual-ui
What changed:
Test:
/xblock/:id/handler/get_block_learner_assessment_data/self
/xblock/:id/handler/get_block_learner_assessment_data/staff
,/xblock/:id/handler/get_block_learner_assessment_data/peer