maths / moodle-qtype_stack

Stack question type for Moodle
GNU General Public License v3.0
142 stars 149 forks source link

Load questions from the "samplequestions" folder direct into a Moodle question bank category #1253

Closed sangwinc closed 1 month ago

sangwinc commented 3 months ago

This proposal is to add a new page in the /adminui folder to allow teachers to load questions from the "samplequestions" folder direct into a Moodle question bank category.

The page will list all questions, but subdirectory (perhaps using HTML details/summary tags to nest sub-directories). Select questions using checkboxes and then upload them to a chosen Moodle question bank category.

In parallel, we'll release materials (e.g. HELM) into this folder to provide a ready-made selection of materials.

sangwinc commented 2 months ago

@EJMFarrow thank you so much for addressing this issue - I think what you've done is really excellent here and very valuable.

Some initial comments.

  1. Please could you make it more prominent when a question has been uploaded? I would like a much clearer confirmation, as I uploaded the same question twice.
  2. I really like the idea of getting to the library from a STACK question. That's a great idea. When you add a new question to a quiz, then follow this link, there is a change of context. Could we fix that bug please?
  3. I'd like to make the library page generally available. It should work for all question types, (not just STACK) as we'd like to distribute libraries of questions using any moodle format. (Eventually, we'll provide access to libraries exported with gitsync.) I'm not sure how to do that, but suggestions are welcome.
aharjula commented 2 months ago

Having seen the screenshot in the pull request and nothing more, I am very excited about this thing. My wishlist, however, might be a bit more outside of a single question-type style of a thing, like that third point from Chris.

In the end, I am wondering if this belongs to qtype_stack or if it should be something like a customisable UI for qbank_gitsync, probably some new qbank-thing?

hayden-MB commented 1 month ago

This looks great! My only thoughts are:

sangwinc commented 1 month ago

Thanks @aharjula, as ever you are way ahead with these suggestions! Yes, logically this should probably be a separate plugin, but that makes is much harder to install. It will be much easier to move this to a dedicated plugin later. The short term/immediate goal, is to give question authors access to materials we already release.

@hayden-MB I agree some kind of interactive preview would be really valuable. I don't want to work at cross purposes with the external question bank project which @m-r-k is working on. (Please do comment on this development @m-r-k!).

Let's just acknowledge how much work @EJMFarrow has done in getting a rendered (static) preview, which is only now possible thanks to his incorporation of the new API into the STACK codebase. This is all going in a very exciting direction.

We'll also need some help in sorting out, tidying up, and exporting the existing materials we want to distribute.

Thanks all, Chris

EJMFarrow commented 1 month ago

Thanks for all the feedback so far. (More welcome!)

To consolidate:

hayden-MB commented 1 month ago

You can also access edit from a quiz preview :)