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

Implement question filtering

    XMLWordPrintable

Details

    • Improvement
    • Status: Waiting for peer review
    • Critical
    • Resolution: Unresolved
    • 4.0, 4.1
    • None
    • Questions, Quiz
    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MDL-72321_master
    • Hide

      Instance setup

      Fresh install an instance using this repo or
      Upgrade the current instance using this repo

       

      Set Up

      1. Login to the site as a site admin
      2. Create a course
      3. Navigate to the question bank
      4. Create some questions in the default category

      Test scenario 1 - Apply filters in question bank view:

      1. Go to the above course
      2. Create a new question category
      3. Add questions to the newly created category
      4. Navigate back to the question bank
      5. Remove the default category from the Type of select selection in the question bank filter
      6. Select the newly added category
      7. Click apply filters
      8. Confirm that the questions of that category are visible
      9. Confirm that other questions from different categories are available here
      10. Change the selection to the default category
      11. Click apply filters
      12. Confirm questions from default categories are available in the question bank

      Test scenario 2 - Adding questions to a quiz from question bank

      1. Go to the above course
      2. Create a quiz
      3. Go to Quiz > Questions > Add question "from question bank"
      4. Remove the default category from the Type of select selection in the question bank filter
      5. Select the newly added category
      6. Click apply filters
      7. Select questions
      8. Click on "Add selected questions to the quiz"
      9. Expected: those question are added to the quiz

       

      Test scenario 3 - Adding random questions  to a quiz

      1. Go to the above course
      2. Create another quiz
      3. Go to Quiz > Questions > Add question using "a random question"
      4. Remove the default category from the Type of select selection in the question bank filter
      5. Select the newly added category
      6. Click apply filters
      7. Scroll down and select number of random question
      8. Click on "Add random question"
      9. Expected: random questions are added to the quiz

       

      Show
      Instance setup Fresh install an instance using this repo or Upgrade the current instance using this repo   Set Up Login to the site as a site admin Create a course Navigate to the question bank Create some questions in the default category Test scenario 1 - Apply filters in question bank view: Go to the above course Create a new question category Add questions to the newly created category Navigate back to the question bank Remove the default category from the Type of select selection in the question bank filter Select the newly added category Click apply filters Confirm that the questions of that category are visible Confirm that other questions from different categories are available here Change the selection to the default category Click apply filters Confirm questions from default categories are available in the question bank Test scenario 2 - Adding questions to a quiz from question bank Go to the above course Create a quiz Go to Quiz > Questions > Add question "from question bank" Remove the default category from the Type of select selection in the question bank filter Select the newly added category Click apply filters Select questions Click on "Add selected questions to the quiz" Expected: those question are added to the quiz   Test scenario 3 - Adding random questions  to a quiz Go to the above course Create another quiz Go to Quiz > Questions > Add question using "a random question" Remove the default category from the Type of select selection in the question bank filter Select the newly added category Click apply filters Scroll down and select number of random question Click on "Add random question" Expected: random questions are added to the quiz  

    Description

      Implement and refactor the current filtering mechanism to a plugin-based filtering mechanism which will come as a part of the qbank API. This implementation will allow developers to develop filter plugins for qbank and also enhance the current filtering features.

      Attachments

        Issue Links

          Activity

            People

              marxjohnson Mark Johnson
              safatshahin Safat Shahin
              Tim Hunt Tim Hunt
              Jake Dallimore Jake Dallimore
              Safat Shahin, Tim Hunt, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie, Tim Hunt, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              3 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 days, 3 hours
                  3d 3h