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
Missing [[ radio ]] placeholder in exercise questions with radio buttons #5172
Comments
I'm afraid this issue is not seeing enough progress to be fixed in a 0.16 patch release, let's postpone it for 0.17. The vast amount of exercises have already been fixed, so it's okay to relax and enjoy that, too :) |
Same exercise, still reproducing |
Hi @benjaoming it seems like this issue is not just about True/False questions. I looked at the JSON data for each question that isn't generating properly. This is just a hunch, but maybe there was a problem while generating these JSON data. In addition, as far as I have observed, most question that don't generate/display correctly has an author_name ['James Lewis'] This question is a a multiple choice kind pk: 7477 {"hints":[{"content":"In the 18th century, many Americans were influenced by the ideas of the Enlightenment. One movement that grew out of the Enlightenment was Deism. Deists did not ascribe to the specific beliefs of religious groups of their time and believed that while God had created the universe, He also did not interfere in human affairs. \n\n[See this video to review these ideas] /learn/khan/humanities/us-history/road-to-revolution/declaration-of-independence/life-liberty-and-the-pursuit-of-happiness/"}],"question":{"content":"Deists… ","widgets":{"radio 1":{"type":"radio","options":{"choices":[{"content":"pushed for the establishment of a state-supported church. ","correct":false},{"content":"believed in a Creator, but did not hold to a specific religious dogma. ","correct":true},{"content":"believed that the Declaration should not refer to a God of any sort.","correct":false},{"content":"were banned in the 13 colonies. ","correct":false}],"randomize":true}}}},"answerArea":{"type":"radio","options":{"choices":[{"content":"pushed for the establishment of a state-supported church. ","correct":false},{"content":"believed in a Creator, but did not hold to a specific religious dogma. ","correct":true},{"content":"believed that the Declaration should not refer to a God of any sort.","correct":false},{"content":"were banned in the 13 colonies. ","correct":false}],"randomize":true}}} and it displays this |
Here is another one that isn't a True/False question. pk: 20744 {"hints":[{"content":"The authors of the Declaration struck a balance in their justification of natural rights. Their explanations looked to both self-evident truths discerned by human reason and the fact that the Creator was the source of these rights. The authors refer to these rights as unalienable which means that no king or government could ever legitimately violate them. \n\n[Watch this video to review these ideas] /learn/khan/humanities/us-history/road-to-revolution/declaration-of-independence/life-liberty-and-the-pursuit-of-happiness/\n\n "}],"question":{"content":""endowed by their Creator with certain unalienable rights" \n\nThis above phrase reflects the authors of the Declaration's belief that\n\n","widgets":{"radio 1":{"type":"radio","options":{"choices":[{"content":"kings ought to have absolute power since they ruled by divine right.","correct":false},{"content":"all people enjoyed certain rights which could never legitimately be taken away from them. ","correct":true},{"content":"there should be no separation between church and state in their new country. ","correct":false},{"correct":false,"content":"that people should enjoy absolute freedom to do as they pleased in their new country. "}],"randomize":true}}}},"answerArea":{"type":"radio","options":{"choices":[{"correct":false,"content":"kings ought to have absolute power since they ruled by divine right."},{"content":"all people enjoyed certain rights which could never legitimately be taken away from them. ","correct":true},{"content":"there should be no separation between church and state in their new country. ","correct":false},{"content":"that people should enjoy absolute freedom to do as they pleased in their new country. ","correct":false}],"randomize":true}}} Dropdown type of questions seem to generate fine. |
@mrpau-eugene you can manipulate the exercise data directly in For the record (because I haven't made note of it anywhere else): This error doesn't seem to give a javascript exception or traceback. |
@benjaoming okay. will try to see if I the culprit is really in the JSON data |
@benjaoming I think this piece of text that is highlighted is required for the questions to display correctly. After adding this line, it works fine 🤣 Working: |
Great find @mrpau-eugene ! Let's ask @rtibbles what he thinks about the solution. Is this because of an error in upstream data, an old version of Perseus or should we try sanitizing these data in the ka-lite-content-packs? |
It is the This looks like an upstream data issue, but you can double check by looking at the item data on Khan Academy at http://www.khanacademy.org/api/internal/assessment_items/ |
@rtibbles ⬆️ is a 404 @mrpau-eugene can you see if the broken questions work here? -> https://www.khanacademy.org/humanities/ap-us-history/period-3/apush-declaration-of-independence/e/aspen-us-declaration-of-independence-quiz |
Oh, my <item_id> addendum disappeared. http://www.khanacademy.org/api/internal/assessment_items/x699f189dd5bcc110 |
Seems like the |
@rtibbles is there advice for @mrpau-eugene about how to report the issue upstream? I guess we don't want to fix such issues in ka-lite-content-packs... |
My guess would be that this might be flagged to not be shown on the main KA site, so if you can't see it there, it may be that we shouldn't be downloading it. |
@mrpau-eugene worth investigating if we are including questions that should be skipped because they are flagged as @rtibbles suggests they might be. In case they are flagged, we would have to check up on whether the ka-lite-content-packs is properly skipping these exercise questions and whether we have to build a new English content pack for that reason. |
@benjaoming @rtibbles I kinda don't understand but the placeholder has a value of 2 while other questions has a value of 1. Can someone explain to me what this value is for or what does it do? For a clarification. [[☃ radio 2]] Btw, here is the unicode of the snowman emoji. I found it somewhere in some questions \u2603. |
@mrpau-eugene what's the diff between the KA.org JSON data for the above question, and the JSON data found in the KA Lite content database? |
@benjaoming aside from the missing [[\u2603 radio 2]], JSON data coming from KhanAcademy: The widgets contains this two objects also, the "answerArea" object coming from KhanAcademy website contains only contains these: |
@mrpau-eduard I'm getting a feeling that it's worth seeing if this issue and the data in our content database can be made to match what's on KA.org by building a new English content pack As you can see, it was reported on Jun 17, 2016 - so it has persisted several of our content packs. |
@benjaoming okay thanks for the suggestion :) I'll do some more investigations, too. I'll also talk to @mrpau-eduard regarding about this. |
@benjaoming @mrpau-eduard I would just like to take note here that this question has been removed from Khan Academy and confirmed that it no longer exists in the newly built content packs. |
Nice find @mrpau-eugene ! I'm closing this now, just added a release note about. |
Summary
@aronasorman wrote in #5131
Branch or installer method
Screenshots
Real-life consequences (anything community should be aware, for instance how it affects your deployment)
We still don't know the count of affected questions.
The text was updated successfully, but these errors were encountered: