-
Notifications
You must be signed in to change notification settings - Fork 10
Fix nested forms for quizzes #791
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
Conversation
development hasn't been used anymore for a long time, instead we always used docker_development and development got outdated.
Note that we replace the byebug gem by debug.
This will allow something like `question[solution_content][dynamic][1,2][content]` for matrix coefficients (note that those are 1-based).
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.
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.
Nice, it is working now.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## next #791 +/- ##
=======================================
Coverage 54.33% 54.33%
=======================================
Files 179 179
Lines 7502 7502
=======================================
Hits 4076 4076
Misses 3426 3426 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Important
Merge #790 beforehand.
This is a follow-up to #751 and fixes #788 by reworking the nested params for quizzes. Among others, for the solution content, we introduce a new intermediate layer called "dynamic", sued to render the fields of a matrix, of a tuple or an expression. It can look like this:
Due to the inherent complexity of quizzes, I'm not sure if this fixes them entirely. Please test this thoroughly manually, e.g. play multiple quizzes (where you answer the same question incorrectly, then play it again where you answer it correctly; create new quizzes etc.).