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

Answer Handling #65

Open
pstaabp opened this issue Nov 13, 2021 · 2 comments
Open

Answer Handling #65

pstaabp opened this issue Nov 13, 2021 · 2 comments

Comments

@pstaabp
Copy link
Member

pstaabp commented Nov 13, 2021

Currently, any problem with a solution shows the base64 version of the solution. It seems like we have two options here

  1. do a base64 to text call to reinterpret (and probably a call to mathJax render function)
  2. send back the answer not encoded.

I think we had discussed this at some point that there's really no reason to encode it. Originally it was to hide solutions from students, but the better way to do this is to have a solution field returned from the server only when the user has permissions to view them.

@drdrew42
Copy link
Member

As with the results table, I think perhaps we might consider 'splitting out' the hints and solutions from the form body.

RenderedHTML:

  • answerTemplate (this is the results table)
  • problemText (this is the form body)
  • problemHint
  • problemSolution
  • submitButtons (which I think we don't need, long-term)

@pstaabp
Copy link
Member Author

pstaabp commented Nov 13, 2021

Also, since we have a separate output format for webwork3, it seems like we can make this change to the renderer easily without affecting ww2.

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

No branches or pull requests

2 participants