Skip to content
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

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

leangseu-edx
Copy link
Contributor

@leangseu-edx leangseu-edx commented Oct 6, 2023

Merge to feat/2023-dual-ui

What changed:

  • implementation for assessment response

Test:

  • go to /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

@codecov
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

All modified lines are covered by tests ✅

❗ No coverage uploaded for pull request base (feat/2023-dual-ui@9ed4664). Click here to learn what that means.

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           
Flag Coverage Δ
unittests 94.99% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@leangseu-edx leangseu-edx marked this pull request as ready for review October 10, 2023 18:26
@leangseu-edx leangseu-edx requested a review from a team as a code owner October 10, 2023 18:26
Copy link
Contributor

@nsprenkle nsprenkle left a 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)
        }
    }
}

Copy link
Contributor

@nsprenkle nsprenkle left a 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.

Copy link
Contributor

@nsprenkle nsprenkle left a 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
@leangseu-edx leangseu-edx merged commit d4a1500 into feat/2023-dual-ui Oct 12, 2023
8 checks passed
@leangseu-edx leangseu-edx deleted the lk/recieved-assessments branch October 12, 2023 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants