RunestoneComponents
RunestoneComponents copied to clipboard
:selectquestion directive does not load if you are not logged in
The :selectquestion directive for a parsons/active code toggle problem does not seem to load if you are not logged in (it gives some javascript errors below), but it does load with no errors if you are logged in.
What Course are you in py4e
What Page were you on https://runestone.academy/runestone/books/published/py4e-int/functions/mixedupcode.html
Describe the bug

Correct! I just discovered that myself last week.
The question is what should we do? I guess we can select a question, but not save that we selected that one for you. So much of select question relies on the database to remember state for you.
I think just selecting the first one would be fine.
Also, :selectquestion does not preview in the Assignment or Grading previews:

It's really hard to do a preview because the question is not in the database yet. I'm not sure if a preview is worth it for all of the special case code / complexity that would be added to support a preview.
Could you show the rst text for it so that teachers know which question divids it is using and can go look at those? Barb wants to add selectquestion toggle to the parsons probs in CSAwesome, so I just want to make sure it works before switching all the parsons problems to that.
I'll look at it tomorrow and see what can be done. So many priorities. I didn't realize you all were going to be going all in on this new feature.
It's not a huge priority. We can wait if it's not ready for primetime yet.
I can understand why people would want to see something for a preview its just not something we ever considered. The whole mindset -- originally -- for the selectquestions was to use them in exams that were written as rst files, not in the web editor.
The other assumption was that they were for students who were logged in and that all of the required information was in the database.
Its awesome that this new directive has inspired these new ideas! It is just going to take some time for us to get there for other use cases.
Thanks for your patience!
A little more work, but the preview in the assignmnet builder now looks like this:
Nice! Thank you!
It seems like the selectquestion component doesn't work on the csawesome server but it does on the runestone server?

csawesome was a few updates behind academy. I have updated csawesome as of this afternoon.