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

Cannot imitate checked/unchecked Learning Outcomes when sending a reflection to Managebac #3

Open
natsuozawa opened this issue Jan 17, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@natsuozawa
Copy link
Member

natsuozawa commented Jan 17, 2019

Description

Upon creating or editing a CAS reflection, the user should have the ability to check or uncheck learning outcomes as demonstrated in the reflection. The form is sent by the browser as a string representing an array of Learning Outcome ids.

...
evidence[type]: 'JournalEvidence'
evidence[body]: 'This is the body of the reflection.'
evidence[educational_outcome_ids][]: '[0, 12345]' 
...

When the request is replicated on the Request Client, it receives a 404 response. The request succeeds if the evidence[educational_outcome_ids[]] property is omitted.

Currently, the request defaults to unchecked Learning Outcomes for all requests.

Steps to reproduce

  1. Set up a proper request involving this issue. (POST /api/cas/:casId/reflections or PATCH /api/cas/:casId/reflections/:reflectionId)
  2. Comment and uncomment the property in the methods craftNewReflection and craftReflection in helpers/managebac.js to see the issue.

Fix

A fix for this issue is being investigated.

@natsuozawa natsuozawa added the bug Something isn't working label Jan 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant