Questions bulk update

General plugins (Local) ::: local_questionbulkupdate
Maintained by Vadim Dvorovenko
Bulk update of some question options.
Latest release:
77 sites
11 downloads
4 fans
Current versions available: 1
This plugin is intended to update questions after import from formats, that do not allow to specify numbering or
default grade. Question bank navigation node will be extended with "Questions bulk update" item. Select category with
desired questions and fill options, that you want to update.

Screenshots

Screenshot #0

Contributors

Vadim Dvorovenko (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Plugins bot
    Tue, 5 Jan 2021, 7:30 PM
    Approval issue created: CONTRIB-8353
  • Yana Konstantinovsky
    Sun, 14 Feb 2021, 6:39 PM
    Thank you for this plugin!
    It's a real time saver! I've been struggling with this issue when importing quiz questions.
  • uk
    Thu, 5 Aug 2021, 6:40 PM
    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?
  • Vadim Dvorovenko
    Sat, 7 Aug 2021, 10:20 PM
    Uwe, good idea. I'll try to do it, but i do not know when i have time for it
  • uk
    Sat, 7 Aug 2021, 11:01 PM
    That's great Vadim. Please share here if you made it.
  • uk
    Fri, 8 Oct 2021, 1:58 AM
    Hi Vadim, is there any news regarding your time budget? Uwe smile
  • Vadim Dvorovenko
    Sun, 12 Dec 2021, 2:50 AM
    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
  • Dean Handby
    Tue, 14 June 2022, 9:03 AM
    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.
  • Vadim Dvorovenko
    Tue, 14 June 2022, 10:53 AM
    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?
  • A K M SAFAT SHAHIN
    Fri, 12 Aug 2022, 6:56 AM
    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!
  • Thomas Gerber
    Thu, 21 Sept 2023, 4:11 AM
    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()
Please login to post comments