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

Add question bank filter - Question ID number

XMLWordPrintable

    • MOODLE_500_STABLE
    • MOODLE_500_STABLE
    • MDL-83861_main
    • Hide

      This covered by behat tests in question/bank/viewquestionname/tests/behat/filter_condition_idnumber_condition.feature

      Manual testing steps:

      1. Go to a question bank page
      2. Create three questions named "a", "b" and "c" with idnumbers "First question", "Second question" and "Third question" respectively.
        • Confirm that you can see all three questions.
      3. Click "Add filter" and set the new filter to "Question ID number"
      4. Enter "First" in the filter and click "Apply filters"
        • Confirm that only "a" is shown.
      5. Add "Second" to the filter as a second keyword and click "Apply filters".
        • Confirm that both "a" and "b" are shown.
      6. Remove "First" and "Second" from the filter.
      7. Add "question" and "d" to the filter as separate keywords, then click "Apply filters"
        • Confirm that all three questions are shown.
      8. Change the filter's "Match" option from "Any" to "All" and click "Apply filters"
        • Confirm that only "b" and "c" are shown.
      9. Change the filter's "Match" option from "All" to "None" and click "Apply filters"
        • Confirm that none of the questions are shown
      10. Remove the "question" keyword from the filter so it just contains "d" and click "Apply filters"
        • Confirm that only "a" is shown.
      11. Remove the filter entirely and click "Apply filters"
        • Confirm that all three questions are shown.
      Show
      This covered by behat tests in question/bank/viewquestionname/tests/behat/filter_condition_idnumber_condition.feature Manual testing steps: Go to a question bank page Create three questions named "a", "b" and "c" with idnumbers "First question", "Second question" and "Third question" respectively. Confirm that you can see all three questions. Click "Add filter" and set the new filter to "Question ID number" Enter "First" in the filter and click "Apply filters" Confirm that only "a" is shown. Add "Second" to the filter as a second keyword and click "Apply filters". Confirm that both "a" and "b" are shown. Remove "First" and "Second" from the filter. Add "question" and "d" to the filter as separate keywords, then click "Apply filters" Confirm that all three questions are shown. Change the filter's "Match" option from "Any" to "All" and click "Apply filters" Confirm that only "b" and "c" are shown. Change the filter's "Match" option from "All" to "None" and click "Apply filters" Confirm that none of the questions are shown Remove the "question" keyword from the filter so it just contains "d" and click "Apply filters" Confirm that only "a" is shown. Remove the filter entirely and click "Apply filters" Confirm that all three questions are shown.
    • Hide

      Code verified against automated checks.

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

      More information about this report

      Built on: Fri Jan 17 10:40:08 AM UTC 2025

      Show
      Code verified against automated checks. Checked MDL-83861 using repository: https://github.com/marxjohnson/moodle.git main (0 errors / 0 warnings) [branch: MDL-83861_main | CI Job ] More information about this report Built on: Fri Jan 17 10:40:08 AM UTC 2025
    • Show
      Launching automatic jobs for branch MDL-83861 _main https://ci.moodle.org/view/Testing/job/DEV.02%20-%20Developer-requested%20PHPUnit/17911/ PHPUnit (sqlsrv) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/61058/ Behat (NonJS - boost and classic) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/61059/ Behat (Firefox - boost) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/61060/ Behat (Firefox - classic) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/61061/ App tests (stable app version) Built on: Tue Jan 14 12:30:32 PM UTC 2025

      Create a new filter for the Question ID number.

      This should used the "keyword" filter type, like the name filter in MDL-83860.

        1. MDL-83861.png
          973 kB
          Ron Carl Alfon Yu

            marxjohnson Mark Johnson
            marxjohnson Mark Johnson
            CMR CMR
            Tim Hunt Tim Hunt
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 30 minutes
                1h 30m

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