Questions bulk update (Legacy)

Maintained by Vadim Dvorovenko
Bulk update of some question options.
Price option: Free

Supports Moodle 3.1-5.0 See all versions
Latest release: 1 year ago
Installations: 75
Downloads (last 90 days): 14

Frankenstyle name: local_questionbulkupdate
Local plugins

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

Hi, any chance to get this running in Moodle 4?
Even when I open the URL manualy, the following database error appear when I click update:
Field "category" does not exist in table "question"
More information about this error
Debug info:
Error code: ddlfieldnotexistDismiss this notification
Stack trace:
line 680 of /lib/dml/moodle_database.php: dml_exception thrown
line 1349 of /lib/dml/moodle_database.php: call to moodle_database->where_clause()
line 107 of /local/questionbulkupdate/classes/helper.php: call to moodle_database->get_recordset()
line 60 of /local/questionbulkupdate/classes/helper.php: call to local_questionbulkupdate\helper->update_questions_in_category()
line 60 of /local/questionbulkupdate/bulkupdate.php: call to local_questionbulkupdate\helper->bulk_update()
Hi,
In Moodle 4.0, the question bank has changed quite a lot (see https://docs.moodle.org/dev/Question_bank_improvements_for_Moodle_4.0).
In particular, there is a new type of plugin: qbank_.... This should be documented at https://docs.moodle.org/dev/Question_bank_plugins, but I am afraid that this is not complete yet. (However, there is information in the upgrade.txt files in the code, and the PHPdocs in the code should explain things.)
So, I think it is a case of
Bad news: you will have to re-write all your local plugins as qbank plugins to work with Moodle 4.0+.
Good news: if you do, then they will probably work even better for users and you can probably reuse almost all of your code.
There are a lot of references in question/bank directory in Moodle 4.0 repository. Please do not hesitate to get in touch if you have any questions.
Cheers!
Dean Handby, plugin works well with categories and subcategories, it's plugins main function. Please clarify, what problems do you have. Do you see category selection field? Can you select category? Do you use standard on external theme? Do you set include subcatoegories checkbox? Do you hav enough rights to edit questions in selected categories?
Hi, We downloaded/installed the plugin on moodle 3.9.5. It appears as though questions can be bulk updated within the course/quiz itself. However it cannot update a category/subcategory of questions. is there a way to enable this to work? It would be quite beneficial being able to perform the bulk update on a category.
Uwe Krüger, spent some time on investigation. Adding tags are not so simply as changing grade or penalty. The set of available tags depends on context, but currently form allows to select categories in different context. The other problem it that question tags editing appeared is available from 3.5, and such change may cause drop support for some version. When speaking about bulk updates, it's not good idea, to specify exact tags list for questions. It's better to specify tags to add, tags to remove and option to clear all existing tags. And one more problem is capabilities - tag capabilities are separated from editing capabilities, making capabilities checks more complex. I think it's better to make separate pages form updating tags only, to simplify version and capabilities checks.
Sorry, but i do not know, if i'll ever have time to do such improvements. But i'm allways open for pull requests, and ready to help any developer, intrested in extending this plugin
Hi Vadim, is there any news regarding your time budget? Uwe smile
That's great Vadim. Please share here if you made it.
Uwe, good idea. I'll try to do it, but i do not know when i have time for it
In order to be able to use random questions sensibly for tests, it is necessary to tag them. E.g. according to suitability for educational programs, processing time and achievable points. Applying this subsequently to the central collections of questions in schools has so far been almost impossible. Maybe it is possible to teach the plugin bulk tagging?
Thank you for this plugin!
It's a real time saver! I've been struggling with this issue when importing quiz questions.
Approval issue created: CONTRIB-8353