Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-85069

Move questions not usable for power users having lots of question banks with lots of question categories

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 5.0
    • Questions
    • None
    • MOODLE_500_STABLE
    • MDL-85069_500_STABLE
    • MDL-85069_main
    • Hide

      1. Generate 2 courses with question banks:
      `php admin/tool/generator/cli/maketestcourse.php --size=M --additionalmodules=qbank --shortname=C1`
      `php admin/tool/generator/cli/maketestcourse.php --size=M --additionalmodules=qbank --shortname=C2`
      2. Go first to course C2 > More > Question banks > Question bank course 3 bank 1 (because of MDL-85551), then to course C1 > More > Question banks > Question bank course 2 bank 1
      3. Open the "Questions" drop-down at the top-left and select "Categories"
      4. Click "Add category"
      5. Create a category called "Extra category 1". Repeat this 21 times until you have 21 extra categories.
      6. Open the "Categories" drop-down at the top-left and select "Questions"
      7. Click "Create a new question"
      8. Add a new "True/False" type question, with the name "TF1", add some question text and save.
      9. On the question bank page, check the checkbox next to "TF1".
      10. Click "With selected" > "Move to"
      Confirm that the "Question bank" autocomplete has "C1 - Question bank course 2 bank 1" selected.
      Confirm that the "Question categories" autocomplete has "Default for Question bank course 2 bank 1" selected.
      11. Expand the "Question bank" autocomplete.
      Confirm that the list of suggestions contains question banks 2-20, with "more than 20 results, please refine your search" as the final option.
      12. Expand the "Question categories" autocomplete.
      Confirm that the list of suggestions contains a disabled "Question bank: Question bank course 2 bank 1" option, plus all 21 extra categories
      13. Type "Extra category 2" into the "Question categories" autocomplete
      Confirm that the list of suggestions contains "Extra category 2" and "Extra category 21" and "Extra category 20" are shown.
      14. Type "course 3 bank 1" in the "Question bank" autocomplete
      Confirm that the list of suggestions contains 12 question banks from course 3, and no "more than 20 results, please refine your search" option.
      15. Select "C2 - Question bank course 3 bank 1"
      Confirm that the "Question categories" autocomplete now has "Default for Question bank course 3 bank 1" selected
      16. Expand the "Question categories" autocomplete
      Confirm that there is a disabled "Question bank: Question bank course 3 bank 1" option, but no other selectable categories.
      18. Click "Move questions"
      19. Click "Confirm"
      Confirm that you are now on "Question bank course 3 bank 1"
      Confirm "Default for Question bank course 3 bank 1" is selected in the category filter
      Confirm that the question "TF1" appears in the question list for the category.

      Show
      1. Generate 2 courses with question banks: `php admin/tool/generator/cli/maketestcourse.php --size=M --additionalmodules=qbank --shortname=C1` `php admin/tool/generator/cli/maketestcourse.php --size=M --additionalmodules=qbank --shortname=C2` 2. Go first to course C2 > More > Question banks > Question bank course 3 bank 1 (because of MDL-85551 ), then to course C1 > More > Question banks > Question bank course 2 bank 1 3. Open the "Questions" drop-down at the top-left and select "Categories" 4. Click "Add category" 5. Create a category called "Extra category 1". Repeat this 21 times until you have 21 extra categories. 6. Open the "Categories" drop-down at the top-left and select "Questions" 7. Click "Create a new question" 8. Add a new "True/False" type question, with the name "TF1", add some question text and save. 9. On the question bank page, check the checkbox next to "TF1". 10. Click "With selected" > "Move to" Confirm that the "Question bank" autocomplete has "C1 - Question bank course 2 bank 1" selected. Confirm that the "Question categories" autocomplete has "Default for Question bank course 2 bank 1" selected. 11. Expand the "Question bank" autocomplete. Confirm that the list of suggestions contains question banks 2-20, with "more than 20 results, please refine your search" as the final option. 12. Expand the "Question categories" autocomplete. Confirm that the list of suggestions contains a disabled "Question bank: Question bank course 2 bank 1" option, plus all 21 extra categories 13. Type "Extra category 2" into the "Question categories" autocomplete Confirm that the list of suggestions contains "Extra category 2" and "Extra category 21" and "Extra category 20" are shown. 14. Type "course 3 bank 1" in the "Question bank" autocomplete Confirm that the list of suggestions contains 12 question banks from course 3, and no "more than 20 results, please refine your search" option. 15. Select "C2 - Question bank course 3 bank 1" Confirm that the "Question categories" autocomplete now has "Default for Question bank course 3 bank 1" selected 16. Expand the "Question categories" autocomplete Confirm that there is a disabled "Question bank: Question bank course 3 bank 1" option, but no other selectable categories. 18. Click "Move questions" 19. Click "Confirm" Confirm that you are now on "Question bank course 3 bank 1" Confirm "Default for Question bank course 3 bank 1" is selected in the category filter Confirm that the question "TF1" appears in the question list for the category.
    • Hide

      Code verified against automated checks.

      Checked MDL-85069 using repository: https://github.com/marxjohnson/moodle.git

      More information about this report

      Built on: Fri Jun 6 15:34:49 UTC 2025

      Show
      Code verified against automated checks. Checked MDL-85069 using repository: https://github.com/marxjohnson/moodle.git MOODLE_500_STABLE (0 errors / 0 warnings) [branch: MDL-85069_500_STABLE | CI Job ] main (0 errors / 0 warnings) [branch: MDL-85069_main | CI Job ] More information about this report Built on: Fri Jun 6 15:34:49 UTC 2025
    • Show
      Launching automatic jobs for branch MDL-85069 _500_STABLE https://ci.moodle.org/view/Testing/job/DEV.02%20-%20Developer-requested%20PHPUnit/19590/ PHPUnit (sqlsrv / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/66994/ Behat (NonJS - boost and classic / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/66995/ Behat (Firefox - boost / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/66996/ Behat (Firefox - classic / complete) Launching automatic jobs for branch MDL-85069 _main https://ci.moodle.org/view/Testing/job/DEV.02%20-%20Developer-requested%20PHPUnit/19591/ PHPUnit (sqlsrv / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/66997/ Behat (NonJS - boost and classic / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/66998/ Behat (Firefox - boost / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/66999/ Behat (Firefox - classic / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/67025/ App tests (stable app version) / complete) Built on: Wed Jun 4 12:30:13 UTC 2025

      When power users want to move questions from one question bank to another, this is not possible because the dialogue with the question banks and categories remain empty because of a timeout/memory issue.

      This is because the dialog tries to load all possible question bank including its categories.

      Ideally the dialogue should use the preselected question bank and categories only. Any other question bank can be loaded via an ajax search. When this new bank is selected, a subsequent request should fetch the category hierarchy in that question bank.

      This would speed up loading the dialogue content a lot.

            marxjohnson Mark Johnson
            strobotta Stephan Robotta
            Luca Bösch Luca Bösch
            Tim Hunt Tim Hunt
            Votes:
            5 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.