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

Tag filter not working when adding random question from questionbank

XMLWordPrintable

    • MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • MOODLE_311_STABLE
    • MDL-69552-master
    • Hide

      Covered by the newly created Behat test. Manual testing is below.

      Initial setup

      1. Log in as admin.
      2. Create a course called C1 or use an existing one.
      3. Navigate to the Question bank of the created course.
      4. Create a category called Cat1 is a subcategory of Default for C1 category.
      5. Create questions as below
      Question type Question name Tag Category
      True/False Question name A foo Default for C1 category
      True/False Question name B bar Default for C1 category
      True/False Question name C foo Cat1

      Testing

      1. Log in as admin.
      2. Create a Quiz called "Quiz with random questions" for the created Course.
      3. Navigate to created Quiz > Edit Quiz (or Questions in the secondary navigation of Moodle 4.0).
      4. Click Add link and click 'a random question'.
      5. Change the Category to Default for C1.
      6. Make sure the Include questions from subcategories too option is not ticked.
      7. Verify that you will see Question name A and Question name B.
      8. Expand the Tags filter.
      9. Verify that you will see foo and bar.
      10. Click on foo.
      11. Verify that the popup will be reloaded.
      12. Verify that you will see Question name A.
      13. Verify that you will not see Question name B.
      14. Click on Include questions from subcategories too.
      15. Verify that the popup will be reloaded.
      16. Verify that you will see Question name A.
      17. Verify that you will not see Question name B.
      18. Verify that you will see Question name C.

       

      Show
      Covered by the newly created Behat test. Manual testing is below. Initial setup Log in as admin. Create a course called C1 or use an existing one. Navigate to the Question bank of the created course. Create a category called Cat1 is a subcategory of Default for C1 category. Create questions as below Question type Question name Tag Category True/False Question name A foo Default for C1 category True/False Question name B bar Default for C1 category True/False Question name C foo Cat1 Testing Log in as admin. Create a Quiz called "Quiz with random questions" for the created Course. Navigate to created Quiz > Edit Quiz (or Questions in the secondary navigation of Moodle 4.0). Click Add link and click 'a random question'. Change the Category to Default for C1. Make sure the Include questions from subcategories too option is not ticked. Verify that you will see Question name A and Question name B. Expand the Tags filter. Verify that you will see foo and bar . Click on foo. Verify that the popup will be reloaded. Verify that you will see Question name A. Verify that you will not see Question name B. Click on Include questions from subcategories too. Verify that the popup will be reloaded. Verify that you will see Question name A. Verify that you will not see Question name B. Verify that you will see Question name C.  
    • 5
    • HQ Team International CIH2-221

      1. Add a tag to 1 or more of your quiz questions
      2. Open the interface to add Random questions to your quiz
      3. Make sure you get all questions in the pool also the once not having the tag
      4. Filter by your tag
      5. See that the interface is not reloading (as in previous 3.5) versions
      6. It looks like all your questions have the tag because you entered the filter
      7. When changing the question category and going back to your previous category the popup reloads and shows the correct question with the tag

      I tested this in Moodle LMS and Moodle Workplace 3.9.x both with standaard Boost theming.

        1. MDL-69552_master_1.png
          MDL-69552_master_1.png
          61 kB
        2. MDL-69552_master_2.png
          MDL-69552_master_2.png
          60 kB
        3. MDL-69552_master_3.png
          MDL-69552_master_3.png
          58 kB
        4. MDL-69552_master_4.png
          MDL-69552_master_4.png
          60 kB
        5. MDL-69552_v311_1.png
          MDL-69552_v311_1.png
          95 kB
        6. MDL-69552_v311_2.png
          MDL-69552_v311_2.png
          97 kB
        7. MDL-69552_v311_3.png
          MDL-69552_v311_3.png
          89 kB
        8. MDL-69552_v311_4.png
          MDL-69552_v311_4.png
          95 kB

            huongn@moodle.com Huong Nguyen
            peterjonker Peter Jonker
            Tim Hunt Tim Hunt
            Andrew Lyons Andrew Lyons
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            8 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 4 hours, 20 minutes
                1d 4h 20m

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